sentry-otel-exporter-setup

Configure the OpenTelemetry Collector with Sentry Exporter for multi-project telemetry routing.

Updated Apr 22, 2026
One-click install
npx skills add https://github.com/imrishuroy/algopatterns --skill sentry-otel-exporter-setup-imrishuroy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-otel-exporter-setup
Source: https://github.com/imrishuroy/algopatterns/tree/main/.agents/skills/sentry-otel-exporter-setup
Command: npx skills add https://github.com/imrishuroy/algopatterns --skill sentry-otel-exporter-setup-imrishuroy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up the OpenTelemetry Collector to send traces and logs to Sentry involves version checks, platform-specific installation, exporter configuration, credential handling, and validation—steps that are error-prone when done manually. ## Core Features & Use Cases - Guided Collector Setup: Checks for existing collector configs, verifies otelcol-contrib v0.145.0+, and installs via binary download or Docker. - Sentry Exporter Configuration: Writes collector pipelines for traces and logs with environment-variable-based credentials and optional automatic Sentry project creation. - Validation & Verification: Validates the config, provides run commands, and confirms telemetry appears in Sentry. - Trace Connectedness: Sets up OTLPIntegration for Python, Ruby, or Node.js Sentry SDKs to link OTel traces with Sentry errors and logs. - Use Case: A team running multiple microservices wants all traces and logs routed to separate Sentry projects through a single collector, with new projects created automatically. ## Quick Start Set up the OpenTelemetry Collector with the Sentry Exporter so my services send traces and logs to Sentry.

Frequently Asked Questions about sentry-otel-exporter-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send OpenTelemetry traces to Sentry?

Configure the OpenTelemetry Collector with the Sentry Exporter, which forwards traces and logs to Sentry. You need otelcol-contrib v0.145.0 or later, your Sentry organization slug, and an Internal Integration auth token set as environment variables.

How to set up the OpenTelemetry Collector with Docker?

Pull the otel/opentelemetry-collector-contrib image using the numeric version tag, then run it with your config file mounted as a volume and your .env file passed via --env-file. Expose ports 4317, 4318, and 13133 for OTLP and health checks.

What version of otelcol-contrib does the Sentry Exporter require?

The Sentry Exporter requires otelcol-contrib v0.145.0 or later. Check your installed version with the collector's version command, and upgrade by downloading a newer binary or pulling a newer Docker image if needed.

Can the Sentry Exporter create Sentry projects automatically?

Yes, enabling auto_create_projects lets the exporter create Sentry projects from the service.name attribute. It requires at least one team in your Sentry org and Project: Write permission on the auth token; new projects are assigned to the first team found.

Why does the Sentry Exporter fail with invalid auth token?

This error occurs when using the wrong token type or an expired token. Use an Internal Integration token created under Settings → Developer Settings → Custom Integrations, not a user auth token, with Organization: Read and Project: Read permissions.

Does Sentry OTLPIntegration work with Python, Ruby, and Node.js SDKs?

Yes, OTLPIntegration is available for the Sentry Python, Ruby, and Node.js SDKs. It links OTel traces to Sentry errors, logs, crons, and metrics, and handles distributed tracing propagation automatically.