-
Notifications
You must be signed in to change notification settings - Fork 289
Open
Labels
Description
https://github.com/WebAssembly/wasi-observe
Notes:
-
Should be able to manage
tracing::Spans with customFutureimpl that shares e.g.Arc<State>with the wasi-observe host component, entering the "wasi-observe current span" whenever polled". This is similar to howtracing::Instrumentedworks (https://docs.rs/tracing/0.1.40/src/tracing/instrument.rs.html#318-322). -
Spans will have to be created semi-dynamically (with static
Metadatabut can have dynamic field values for things like theotel.name) -
Dynamic span attributes can be appended directly to the underlying opentelemetry span context: https://docs.rs/tracing-opentelemetry/latest/tracing_opentelemetry/trait.OpenTelemetrySpanExt.html#tymethod.set_attribute