Skip to content

Commit

Permalink
Update src/OpenTelemetry.Instrumentation.Http/Implementation/HttpWebR…
Browse files Browse the repository at this point in the history
…equestActivitySource.netfx.cs

Co-authored-by: Johannes Tax <[email protected]>
  • Loading branch information
matt-hensley and pyohannes authored Sep 19, 2023
1 parent 27ad5ab commit dfaa8f7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private static void ProcessRequest(HttpWebRequest request)
WebRequestActivitySource.StartActivity(ActivityName, ActivityKind.Client);
}

var activityContext = Activity.Current?.Context ?? default;
var activityContext = activity?.Context ?? default;

// Propagation must still be done in all cases, to allow
// downstream services to continue from parent context, if any.
Expand Down

0 comments on commit dfaa8f7

Please sign in to comment.