Description
Problem Statement
OpenTelemetry has growing popularity in the observability space as one of the top CNCF open standard for APM.
It's data model differs from Sentry so it cannot be natively ingested. But many OpenTelemetry users would like to send their OTEL data to Sentry.
Solution Brainstorm
Details
- SDK Docs: OpenTelemetry Support | Sentry
- span processor - transforming OTEL spans into Sentry spans within Sentry transactions
- span name, description and span status
- span status needs special logic for DiagnosticSource versions < 6.0.0
- parent child relationships
- span name, description and span status
- trace/context propagator - including DSC and trace context
dogfooding
The cartservice on our OTel Demo is .NET
Reference
Demo project from OTEL, we created a fork to instrument with Sentry SDKs, to test and demo the implementation. Projects are in the Sentry SDKs org
For more context, these PRs are not exhaustive list of the work done on other SDKs
-
Python: Basic OpenTelemetry (OTEL) Support sentry-python#1687
-
Node: Add OpenTelemetry Node Package sentry-javascript#6000 & [OTEL] Add
instrumenteroption to Node SDK & disable auto-instrumentation sentry-javascript#6127 -
Relay: Add OpenTelemetry span transformation relay#1636
- efforts to consolidate the logic so the SDKs do not have to as much
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsDone
Activity
mattjohnsonpint commentedon Nov 27, 2022
Related: #334
bruno-garcia commentedon Jan 19, 2023
cartservicein the demo can be instrumented for testing: https://github.com/getsentry/opentelemetry-demo/tree/main/src/cartservicekramnos commentedon May 30, 2023
@mattjohnsonpint - could I ask if there is an ETA for this feature? The .NET OpenTelemetry implementation is reasonably mature now, so it shouldn't present too many roadblocks. Given the popularity of .NET, I'm surprised Sentry deprioritised this implementation, relative to the other supported languages.
jamescrosswell commentedon Jun 20, 2023
@source-studio sorry no one got back to you sooner. I'll see if I can pick this one up... I haven't yet gathered enough context to be able to estimate how long this might take but you should see some updates/activity shortly.