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

**URL:** https://discuss.elastic.co/t/why-dont-i-see-exceptions-recorded-as-part-of-span-using-apm-agent-dotnet-in-opentelemetry-bridge-mode/369228
**Category:** APM
**Tags:** dotnet, open-telemetry
**Created:** [October 22, 2024, 1:44pm UTC](https://discuss.elastic.co/t/why-dont-i-see-exceptions-recorded-as-part-of-span-using-apm-agent-dotnet-in-opentelemetry-bridge-mode/369228 "2024-10-22T13:44:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![NikiforovAll](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nikiforovall/32/138588_2.png) [@NikiforovAll](https://discuss.elastic.co/u/NikiforovAll)
#### Post date: [October 22, 2024, 1:44pm UTC](https://discuss.elastic.co/t/why-dont-i-see-exceptions-recorded-as-part-of-span-using-apm-agent-dotnet-in-opentelemetry-bridge-mode/369228/1 "2024-10-22T13:44:50Z")

</div>

**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.

---

<div class="post-metadata">

### Author: ![stevejgordon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stevejgordon/32/80912_2.png) [@stevejgordon](https://discuss.elastic.co/u/stevejgordon)
#### Post date: [November 11, 2024, 9:08am UTC](https://discuss.elastic.co/t/why-dont-i-see-exceptions-recorded-as-part-of-span-using-apm-agent-dotnet-in-opentelemetry-bridge-mode/369228/2 "2024-11-11T09:08:48Z")

</div>

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](https://www.nuget.org/packages/Elastic.OpenTelemetry) 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?
