You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the tracing crate, tracing_opentelemetry, opentelemetry crates along with opentelemetry-appender-tracing (with experimental_use_tracing_span_context enabled). And noticed an issue when creating a new span and then calling set_parent, the logs exported will have the old traceId created with span! instead of the traceId from parent_context set with set_parent.
let span = span!(Level::INFO, SPAN_NAME);
span.set_parent(parent_context);
let _enter = span.enter();
// the following logging will have the trace ID created from `span!` instead of the parent_context
// when exporting with `opentelemetry-appender-tracing`
tracing::info!("next message in nats");
// if printing span.context().span().span_context().trace_id(), the traceId would be the one from parent_context
OpenTelemetry API Version (i.e version of opentelemetry crate)
0.28.0
OpenTelemetry SDK Version (i.e version of opentelemetry_sdk crate)
0.28.0
What Exporter(s) are you seeing the problem on?
OTLP
Relevant log output
The text was updated successfully, but these errors were encountered:
What happened?
I'm using the tracing crate, tracing_opentelemetry, opentelemetry crates along with opentelemetry-appender-tracing (with experimental_use_tracing_span_context enabled). And noticed an issue when creating a new span and then calling set_parent, the logs exported will have the old traceId created with span! instead of the traceId from parent_context set with set_parent.
OpenTelemetry API Version (i.e version of
opentelemetry
crate)0.28.0
OpenTelemetry SDK Version (i.e version of
opentelemetry_sdk
crate)0.28.0
What Exporter(s) are you seeing the problem on?
OTLP
Relevant log output
The text was updated successfully, but these errors were encountered: