getsentry / sentry-dotnet

Sentry SDK for .NET
https://docs.sentry.io/platforms/dotnet
MIT License
603 stars 206 forks source link

Unable to search traces via OTel attributes #3772

Open bitsandfoxes opened 6 days ago

bitsandfoxes commented 6 days ago

Are we grabbing and adding OTel attributes adding them to our transaction/spans.

Creating the "otel" context:

.NET

https://github.com/getsentry/sentry-dotnet/blob/cbe1af4c722b22eb6ee0cbe5c70b25a8d7056d41/src/Sentry.OpenTelemetry/SentrySpanProcessor.cs#L227C1-L228C1

Python:

https://github.com/getsentry/sentry-python/blob/3e2885322a633398d62e8f1dae6315eefec35a34/sentry_sdk/integrations/opentelemetry/span_processor.py#L201-L203

Adding the attributes:

.NET

https://github.com/getsentry/sentry-dotnet/blob/cbe1af4c722b22eb6ee0cbe5c70b25a8d7056d41/src/Sentry.OpenTelemetry/SentrySpanProcessor.cs#L422C6-L437C6

Python

https://github.com/getsentry/sentry-python/blob/3e2885322a633398d62e8f1dae6315eefec35a34/sentry_sdk/integrations/opentelemetry/span_processor.py#L246C1-L260C19

But the traces don't seem to be seachable in the product based on the OTel attributes.

jamescrosswell commented 6 days ago

Initial reaction is that the SDKs are doing what they should so the issue is more likely in sentry.io.

@bitsandfoxes should this issue maybe go in the getsentry/sentry repository?