Spans are not automatically captured for HTTP calls completed with exception on .NET Full Framework
See original GitHub issueFor example, when testing /Home/FailingOutGoingHttpCall
of sample\AspNetFullFrameworkSampleApp
(the issue is reproducible both when the application running on top of IIS and IIS Express).
It seems that in that case IDiagnosticListener
on .NET Framework doesn’t receive HTTP-request-failed event as it does happen on .NET Core.
In /Home/FailingOutGoingHttpCall
HTTP call fails because host name is nonexistent, i.e., DNS resolution failure - we also need to cover cases when HTTP call fails because it’s timed out and/or server forcibly closed connection. elastic/apm-agent-dotnet#293 is the issue to implement the same kind of tests for .NET Core.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
NET Agent is not capturing / sending spans to APM/ Elastic
Hi, We are trying to capture tracing data from a .NET application into APM to help pinpoint performance problems, we can see HTTP...
Read more >Memory<T> and Span<T> usage guidelines
This article describes Memory and Span, which are buffers of structured data in .NET that can be used in pipelines.
Read more >Semantic conventions for HTTP spans
full SHOULD capture the absolute URL when it is available (or can be reconstructed) and SHOULD NOT be validated or modified except for...
Read more >NET agent configuration
How to configure the New Relic .NET agent using newrelic.config, including startup and instrumentation options, and disabling unwanted features.
Read more >Concepts of tracing
Note: This page is about the general concept of distributed tracing and how it is implemented in Instana AutoTrace™. For more information, see...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@SergeyKleyman I’m sorry for the delay (you must get that a lot). I have since removed the use of the IDiagnosticListener and created my own handlers for HttpClient and API pipeline. These are working well
Bigger problem: we only receive the start event and we create a span for that and store the request - problem is we don’t get any event for the exception or end. Probably as the 1. step we should make sure we don’t cause too much memory usage due to this.