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

Question (or possibly bug) System.Net.Http.HttpRequestOut.Start & DiagnosticAdapter #1895

Closed
yahorsi opened this issue Jun 27, 2019 · 1 comment

Comments

@yahorsi
Copy link

yahorsi commented Jun 27, 2019

Hi Guys,

I have very simple console app where I want to receive following events:
"System.Net.Http.HttpRequestOut.Start"
"System.Net.Http.HttpRequestOut.Stop"
"System.Net.Http.Request"
"System.Net.Http.Response"

When I use DiagnosticListener.SubscribeWithAdapter I do receive Request/Response but do not receive HttpRequestOut.Start/HttpRequestOut.Stop. When I do not use adapter and just subscribe I receive all events described above (but sure using them throught adapter is was simpler).

I gave up trying to understan what's wrong and made very small repo containing full sample.

repo could be found here https://github.com/yahorsi/HttpHandlerDiagnosticListener

Thanks for any help

@yahorsi
Copy link
Author

yahorsi commented Jun 27, 2019

Damn, who could think I need to add fake event handler (( After I added "System.Net.Http.HttpRequestOut" method things have started working. So closing

@yahorsi yahorsi closed this as completed Jun 27, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Dec 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant