Skip to content

Activity ends before custom Application_EndRequest #77

Open
@chris-smith-zocdoc

Description

@chris-smith-zocdoc

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions