-
Notifications
You must be signed in to change notification settings - Fork 612
Open
Description
opentelemetry-appender-tracing crate currently converts tracing events to OpenTelemetry LogRecords but ignores span context. We should include span attributes in the LogRecord attributes when events are emitted within an active span (tracing span).
Current behavior:
let span = info_span!("request", user_id = 123, endpoint = "/api/users");
let _guard = span.enter();
info!(status = 200, "Request completed");
// LogRecord only contains: status = 200, message = "Request completed"Desired behavior:
let span = info_span!("request", user_id = 123, endpoint = "/api/users");
let _guard = span.enter();
info!(status = 200, "Request completed");
// LogRecord should contain: status = 200, message = "Request completed", user_id = 123, endpoint = "/api/users"This is distinct from the tracing-opentelemetry crate which converts tracing spans to OTel spans. This issue is specifically about enriching log records with span context from tracing.
scottgerring
Metadata
Metadata
Assignees
Labels
No labels