Add otelTraceSampled
field to LogEntry for OLTP Logging Instrumentation module
#1765
Labels
otelTraceSampled
field to LogEntry for OLTP Logging Instrumentation module
#1765
Before opening a feature request against this repo, consider whether the feature should/could be implemented in the other OpenTelemetry client libraries. If so, please open an issue on opentelemetry-specification first.
Is your feature request related to a problem?
Getting span id and trace id in the log record is a must. Cloud provider libraries, e.g. Google Cloud Logging also provides a
logging.googleapis.com/trace_sampled
field under structured logging, which can be populated using this library.Describe the solution you'd like
Add a
record.otelTraceSampled
field similar torecord.otelSpanID
andrecord.otelTraceID
in the log entry using thetrace_flags
property inSpanContext
.Describe alternatives you've considered
Manually injecting the value of
trace_flags
property into the log record by using the currentSpanContext
.The text was updated successfully, but these errors were encountered: