-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add context to RPC impl on the server side #28
Comments
Proposed UsageA new type #[export_impl]
impl Service for State {
#[export_method]
pub async fn(&self, arg: Arg) -> _ {
let ctx: Arc<Context> = Context::current();
// ....
}
} The implementation will likely use |
Another PropositionAnother way would be to allow user define the service with the #[export_impl]
impl Service for State {
#[export_method]
pub async fn(&self, ctx: Arc<Context>, arg: Arg) -> _ {
// ....
}
} |
The context could be used for
tracing
and distributed tracing withopentelemetry
#26)The text was updated successfully, but these errors were encountered: