Skip to content

Conversation

@sl0thentr0py
Copy link
Member

@sl0thentr0py sl0thentr0py commented Oct 1, 2025

merge after getsentry/sentry-python#4877 is released

Issues

@vercel
Copy link

vercel bot commented Oct 1, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sentry-docs Ready Ready Preview Comment Nov 6, 2025 4:06pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
develop-docs Ignored Ignored Preview Nov 6, 2025 4:06pm

@codecov
Copy link

codecov bot commented Oct 1, 2025

Bundle Report

Changes will increase total bundle size by 411 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-client-array-push 10.16MB -6 bytes (-0.0%) ⬇️
sentry-docs-server-cjs 12.93MB 417 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.74MB -0.0%
../instrumentation.js -3 bytes 1.07MB -0.0%
9523.js -3 bytes 1.04MB -0.0%
../app/[[...path]]/page.js.nft.json 142 bytes 876.27kB 0.02%
../app/platform-redirect/page.js.nft.json 142 bytes 876.18kB 0.02%
../app/sitemap.xml/route.js.nft.json 142 bytes 873.41kB 0.02%
view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 882.71kB -0.0%
static/chunks/8321-*.js -3 bytes 425.87kB -0.0%
static/6AqAb4mxbejueY5cdLXXt/_buildManifest.js (New) 684 bytes 684 bytes 100.0% 🚀
static/6AqAb4mxbejueY5cdLXXt/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/kWNV74C9RFd4WvojsQJWF/_buildManifest.js (Deleted) -684 bytes 0 bytes -100.0% 🗑️
static/kWNV74C9RFd4WvojsQJWF/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️

@sl0thentr0py sl0thentr0py force-pushed the neel/python-poc-otlp branch 2 times, most recently from 279511d to 68ec4fc Compare November 6, 2025 15:36
@sl0thentr0py sl0thentr0py changed the title feat(otlp): Add python OTLP example feat(otlp): Add python OTLP integration Nov 6, 2025
@linear
Copy link

linear bot commented Nov 6, 2025

@sl0thentr0py sl0thentr0py marked this pull request as ready for review November 6, 2025 15:39

## Dedicated Integrations

The following SDKs have dedicated integrations that make setting up OTLP a breeze.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this POTEL, or is there something else we've recently done to make Python specifically easier to set up?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the original POTEL project is dead
this is the first of the OTLP SDKs which is the project that replaces POTEL leveraging our new OTLP ingestion support

keywords: ["otlp", "otel", "opentelemetry"]
---

The OTLP integration configures the Sentry SDK to automatically send trace data instrumented by an [OpenTelemetry](https://opentelemetry.io) SDK to Sentry's [OpenTelemetry Protocol](https://opentelemetry.io/docs/specs/otel/protocol/) [ingestion endpoint](/concepts/otlp).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love links to all the information, but also having 3 in a row can make it hard to know what I'm focusing on. I suggest dropping the general one, as I assume people who land here will go to the protocol and then can dig in on otel.

Suggested change
The OTLP integration configures the Sentry SDK to automatically send trace data instrumented by an [OpenTelemetry](https://opentelemetry.io) SDK to Sentry's [OpenTelemetry Protocol](https://opentelemetry.io/docs/specs/otel/protocol/) [ingestion endpoint](/concepts/otlp).
The OTLP integration configures the Sentry SDK to automatically send trace data instrumented by an OpenTelemetry SDK to Sentry's [OpenTelemetry Protocol](https://opentelemetry.io/docs/specs/otel/protocol/) [ingestion endpoint](/concepts/otlp).


### OpenTelemetry

For the OpenTelemetry SDK, you need to [configure instrumentation](https://opentelemetry.io/docs/languages/python/getting-started/#instrumentation) as per your needs.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For the OpenTelemetry SDK, you need to [configure instrumentation](https://opentelemetry.io/docs/languages/python/getting-started/#instrumentation) as per your needs.
For the OpenTelemetry SDK, you need to [configure instrumentation](https://opentelemetry.io/docs/languages/python/getting-started/#instrumentation) you want to capture.


For the Sentry SDK, you simply need to enable our `OTLPIntegration` along with your existing configuration.

<OnboardingOptionButtons
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also call out tracing? It sounds like tracing is also auto opt-in like error monitoring, and we should show that.

Copy link
Member Author

@sl0thentr0py sl0thentr0py Nov 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

people should not use our tracing when they use opentelemetry tracing, it's going to either or. Maybe we should clarify that?

Copy link
Contributor

@sfanahata sfanahata Nov 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think it's a simple clarification. I added a suggestion in the behavior section below.


* A [`SpanExporter`](https://opentelemetry.io/docs/concepts/components/#exporters) that will automatically setup the OTLP ingestion endpoint from your Sentry DSN
* A [`Propagator`](https://opentelemetry.io/docs/concepts/context-propagation/#propagation) that ensures [distributed tracing](/concepts/key-terms/tracing/distributed-tracing/) works
* Trace/Span linking for all other Sentry events such as Errors, Logs, Crons and Metrics
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to call out that Logs, Crons, and Metrics require additional config?


<Alert>

We have a dedicated <PlatformLink to="/integrations/otlp"> OTLPIntegration </PlatformLink> now that can directly ingest OpenTelemetry Traces into Sentry. We recommend moving over to the new setup since it is much simpler.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
We have a dedicated <PlatformLink to="/integrations/otlp"> OTLPIntegration </PlatformLink> now that can directly ingest OpenTelemetry Traces into Sentry. We recommend moving over to the new setup since it is much simpler.
We now have a dedicated <PlatformLink to="/integrations/otlp"> OTLPIntegration</PlatformLink> that can directly ingest OpenTelemetry Traces into Sentry. We recommend moving over to the new setup since it is much simpler.

sidebar_order: 20
---

<Alert>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Alert>
<Alert title="New Integration Option">


Under the hood, the `OTLPIntegration` will setup the following parts:

* A [`SpanExporter`](https://opentelemetry.io/docs/concepts/components/#exporters) that will automatically setup the OTLP ingestion endpoint from your Sentry DSN
Copy link
Contributor

@sfanahata sfanahata Nov 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* A [`SpanExporter`](https://opentelemetry.io/docs/concepts/components/#exporters) that will automatically setup the OTLP ingestion endpoint from your Sentry DSN
* A [`SpanExporter`](https://opentelemetry.io/docs/concepts/components/#exporters) that will automatically setup the OTLP ingestion endpoint from your Sentry DSN. This enables tracing in Sentry. **Note:** _Do not_ also set up tracing via the Python SDK.

@@ -1,2 +1,2 @@
---
title: OpenTelemetry Support
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: Legacy OpenTelemetry Integration Support

Copy link
Contributor

@sfanahata sfanahata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good. The only thing I'd love to see changed are the clarifications on only using the OTLP integration for tracing and renaming the POTEL doc + the alert to be clearer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OtlpIntegration: user docs

3 participants