Resolve code issues faster by adding your OpenTelemetry traces and logs to Sentry. Connect with the community on Discord.
Leverage the OpenTelemetry instrumentation you're already using and plug it into Sentry via the SDK. Get to the root of a problem with detailed distributed traces that provide a complete end-to-end view of the request path leading up to an error; and let Sentry automatically categorize performance issues based on your stack.
Install the Sentry Python SDK with OpenTelemetry:
pip install --upgrade 'sentry-sdk[opentelemetry-otlp]'
Configure your application:
import sentry_sdk from sentry_sdk.integrations.otlp import OTLPIntegration sentry_sdk.init( dsn="__DSN__", # Add data like request headers and IP for users, if applicable; # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info send_default_pii=True, integrations=[ OTLPIntegration(), ], )
Check our documentation for the latest instructions.
propagateTraceparent"Getting started with Sentry and OpenTelemetry was fast and easy. We chose Sentry because we can understand why and where something is slow, fix it quickly, and get ahead of user complaints."


