otlp

command
v0.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

This example demonstrates two ways to set up OpenTelemetry tracing with Sentry.

setupTracerProviderWithSentry exports spans directly to Sentry using sentryotlp.NewTraceExporter.

setupTracerProviderWithCollector exports spans to a standard OpenTelemetry Collector using otlptracehttp.New.

To link Sentry errors, register sentryotel.NewOtelIntegration in sentry.Init.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL