Skip to content

Allow for adding Tags and Baggages to logs #176

@aco-mreble

Description

@aco-mreble

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions