-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
It would be great if we could enrich Activity tags and baggages to the logs. Microsoft uses ActivityTrackingOptions for this for their Logs.
Describe the solution you'd like
I think the LogEvents
already are created, see serilog/serilog#1955 it would be great if we can leverage ActivityTrackingOptions
so not only the span_id
or trace_id
are shown but also the tags or baggaes.
builder.Logging
.Configure(options =>
{
options.ActivityTrackingOptions = ActivityTrackingOptions.SpanId | ActivityTrackingOptions.Tags;
});
Alternatively one could use the already existing BatchedOpenTelemetrySinkOptions.IncludeData
field and add ActivityTags
and ActivityBaggages
Leon99
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request