Skip to content

Commit

Permalink
Merge branch 'main' into fix-prerelease-reference
Browse files Browse the repository at this point in the history
  • Loading branch information
utpilla authored Nov 17, 2022
2 parents 6f50de9 + 23dbc39 commit 1a0377f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

* Restore Activity.Current before all IIS Lifecycle events
([#761](https://github.com/open-telemetry/opentelemetry-dotnet-contrib/pull/761))

## 1.0.0-rc9.6

Released 2022-Sep-28
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,7 @@ private void Application_BeginRequest(object sender, EventArgs e)
private void OnExecuteRequestStep(HttpContextBase context, Action step)
{
// Called only on 4.7.1+ runtimes

if (context.CurrentNotification == RequestNotification.ExecuteRequestHandler && !context.IsPostNotification)
{
ActivityHelper.RestoreContextIfNeeded(context.ApplicationInstance.Context);
}

ActivityHelper.RestoreContextIfNeeded(context.ApplicationInstance.Context);
step();
}

Expand Down

0 comments on commit 1a0377f

Please sign in to comment.