Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public static bool HasStarted(HttpContextBase context, out Activity? aspNetActiv
Activity? activity = null;
try
{
Baggage.Current = propagationContext.Baggage;
activity = onRequestStartedCallback?.Invoke(context, propagationContext.ActivityContext);
}
catch (Exception callbackEx)
Expand All @@ -71,8 +72,6 @@ public static bool HasStarted(HttpContextBase context, out Activity? aspNetActiv
{
if (textMapPropagator is not TraceContextPropagator)
{
Baggage.Current = propagationContext.Baggage;

context.Items[ContextKey] = new ContextHolder(activity, RuntimeContext.GetValue(BaggageSlotName));
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Propagate baggage before `Activity` is created.
([#3820](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/3820))

## 1.15.0

Released 2026-Jan-21
Expand Down