question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spans are not automatically captured for HTTP calls completed with exception on .NET Full Framework

See original GitHub issue

For 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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewharrycommented, Jun 28, 2019

@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

0reactions
gregkalaposcommented, Sep 4, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found