Why don't I see exceptions recorded as part of Span using apm-agent-dotnet in OpenTelemetry Bridge Mode

Kibana version:
Version 8.15.2
Elasticsearch version:
Version 8.15.2
APM Server version:
Version 8.15.2
APM Agent language and version:

Steps to reproduce:

  1. Create top-level activity using ActivitySource.StartActivity in C#/.NET
  2. Record exception activity.RecordException(ex). Note, it is a standard method provided by SDK in .NET
  3. Open the trace in Kibana

The outcome: I can't find the trace in "Errors" tab
Expected result: I want to be able to see all exceptions in "Errors" tab.

Sorry for the delay @NikiforovAll.

RecordException is an extension method of the OTel SDK. The bridge is purely designed for capturing spans directly from the Activity APIs. If you're using the OTel SDK, you can send OTLP directly to Elastic APM rather than rely on our SDK and the bridge. We also have a distro you might want to check out.

In .NET 9 (and System.DIagnostics.DiagnosticSource 9), a dedicated AddException method is being added. Once that is released, we will review if that's something we can and should bridge as an APM error.

Does that help?