Provide a set of helpers to build [OpenTelemetry] instrumentation based on [tracing
] crate, and following the OpenTelemetry Trace Semantic Conventions.
PS: Contributions are welcome (bug report, improvements, features, ...)
[tracing-opentelemetry
] extends [tracing
] to interoperate with [OpenTelemetry]. But with some constraints:
NEW
span or inherited from parent span. The parent context can be overwritten after creation, but until then the trace_id
is the one from NEW
, So tracing's log could report none or not-yet set traceid on event NEW
and the following until update.otel.name
, otel.kind
, ...Record in a [tracing
]'s Span should be defined at creation time. So some field are created with value tracing::field::Empty
to then being updated.