Skip to content

Commit

Permalink
remove post notification check
Browse files Browse the repository at this point in the history
add note to changelog
  • Loading branch information
chris-smith-zocdoc committed Nov 17, 2022
1 parent 0c156b3 commit e9e935d
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.IsPostNotification)
{
ActivityHelper.RestoreContextIfNeeded(context.ApplicationInstance.Context);
}

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

Expand Down

0 comments on commit e9e935d

Please sign in to comment.