Module context

Module context 

Source
Expand description

Contains helpers and code for enabling OpenTelemetry tracing for wasmcloud. Please note that right now this is only supported for providers. This module is only available with the otel feature enabled

Structs§

TraceContextExtractor
A convenience type that wraps an invocation TraceContext and implements the Extractor trait
TraceContextInjector
A convenience type that wraps an invocation TraceContext and implements the Injector trait

Functions§

attach_span_context
A convenience function that will extract from an incoming context and set the parent span for the current tracing Span. If you want to do something more advanced, use the TraceContextExtractor type directly
get_span_context
A convenience function that will extract the opentelemetry::Context from the given TraceContext. If you want to do something more advanced, use the TraceContextExtractor