wasmcloud_provider_sdk

Macro propagate_trace_for_ctx

source
macro_rules! propagate_trace_for_ctx {
    ($ctx:ident) => { ... };
}
Expand description

Instrument a given [provider_sdk::Context], injecting current tracing-generated metadata if one isn’t present.

This functionality is exposed as a macro since the context for trace injection should be at the call site of this macro (ex. inside some method annotated with #[instrument])

This macro requires provider_sdk and wasmcloud_tracing to be imported