Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activity ends before custom Application_EndRequest #77

Open
chris-smith-zocdoc opened this issue Oct 28, 2020 · 0 comments
Open

Activity ends before custom Application_EndRequest #77

chris-smith-zocdoc opened this issue Oct 28, 2020 · 0 comments

Comments

@chris-smith-zocdoc
Copy link

We have a custom HttpApplication class defined in our Global.asax which has an event handler Application_EndRequest

When this handler executes, I expected it to be within the current Activity but it was not, as the event registered by TelemetryCorrelationHttpModule had executed first. This causes any spans (we're using open-telemetry) created in our EndRequest event to appear as if they started after the root span has finished.

Is there a way to ensure our Application_EndRequest event is executed before the one defined in this http module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant