Registry /
observability / otel-exporters-otlp-otlptrace-otlptracehttp
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
otlptracehttp
✓ go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp
Creates a new OTLP HTTP trace exporter and shuts it down.
package main
import (
"context"
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp"
)
func main() {
exporter, err := otlptracehttp.New(context.Background())
if err != nil {
panic(err)
}
defer exporter.Shutdown(context.Background())
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.44.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.