This repository was archived by the owner on Jan 23, 2023. It is now read-only.
HttpHandlerDiagnosticListener did not send DiagnosticSource Stop event on netfx in W3C mode#40777
Merged
lmolkova merged 1 commit intodotnet:masterfrom Sep 4, 2019
Merged
HttpHandlerDiagnosticListener did not send DiagnosticSource Stop event on netfx in W3C mode#40777lmolkova merged 1 commit intodotnet:masterfrom
lmolkova merged 1 commit intodotnet:masterfrom
Conversation
…erDiagnosticListener on netfx
Member
Contributor
|
You should run Outerloop tests before final merge especially since the tests affected are Outerloop. And each new commit to a PR does not kick off a new Outerloop run. So, you need to kick off Outerloop manually each time with "/azp run" |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 4 pipeline(s). |
davidsh
approved these changes
Sep 3, 2019
Author
macrogreg
pushed a commit
to open-telemetry/opentelemetry-dotnet-instrumentation
that referenced
this pull request
Sep 24, 2020
…erDiagnosticListener on netfx (dotnet/corefx#40777) Commit migrated from dotnet/corefx@687a840
picenka21
pushed a commit
to picenka21/runtime
that referenced
this pull request
Feb 18, 2022
…erDiagnosticListener on netfx (dotnet/corefx#40777) Commit migrated from dotnet/corefx@687a840
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HttpHandlerDiagnosticListener monkey-patches WebRequest to enable tracing with DiagnosticSource.
HttpHandlerDiagnosticListener uses presence of tracing headers to determine if a request was initially instrumented (
Activity.Currentwhich isAsyncLocaldoes not survive in WebRequest callbacks). Based on header presence, when response tarts, it notifies a listener with 'Stop' callback.In #35882 it started to support W3C trace-context and now
Stopevent is not sent if a new W3Ctraceparentis present, but oldRequest-Idis not.This issue only reproduces when tracing is on and W3C mode for Activity is on. By default tracing is off and no events are sent. When tracing is on, default Activity format is the old one, that works with Request-Id header, so problem does not repro.
Tracing tools that enable W3C, can workaround it with adding Request-Id header themselves.