Registry / observability / opentelemetry-exporter-otlp

opentelemetry-exporter-otlp

JSON →
library1.44.0pypypi✓ verified 24d ago

The opentelemetry-exporter-otlp library provides OpenTelemetry Collector exporters, allowing users to send telemetry data to OpenTelemetry-supported backend systems. Current version: 1.40.0, released with a cadence of regular updates enhancing functionality and fixing issues.

pip install opentelemetry-exporter-otlp
INSTALL
IMPORT
SIG · OPENTELEMETRY-EXPO
O
opentelemetry-exporter-otlp
observabilitypythonv1.44.0
Install
5.0s avg
Import
746ms
Disk
48MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.44.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.934s · 49.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 5.0s · import 0.558s · 48MB
48MB installed
● package 48MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

OTLPSpanExporter
from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter

A simple quickstart example to set up an OTLP exporter and send telemetry data.

import os from opentelemetry import trace from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter from opentelemetry.sdk.resources import Resource from opentelemetry.sdk.trace import TracerProvider from opentelemetry.trace import set_tracer_provider # Set up the OTLP exporter exporter = OTLPSpanExporter(endpoint=os.environ.get('OTEL_EXPORTER_OTLP_ENDPOINT', 'localhost:4317')) set_tracer_provider(TracerProvider(resource=Resource.create({'service.name': 'example-service'}))) tracer = trace.get_tracer(__name__) # Example usage with tracer.start_as_current_span('example-span'): print('Hello, OpenTelemetry!')
Debug
Known issues
breakingThe behavior of start_span and start_as_current_span in NoOpTracer has changed; it now propagates the span context properly.
fix
Update code to handle the new behavior in NoOpTracer.
affects: 1.40.0
deprecatedLoggingHandler in opentelemetry-sdk is deprecated; use opentelemetry-instrumentation-logging instead.
fix
Switch to using opentelemetry-instrumentation-logging for logging.
affects: <1.40.0
breakingThe module 'opentelemetry.exporter.otlp.trace_exporter' no longer exists. The OTLP exporter functionality was split into protocol-specific packages (gRPC and HTTP) and their import paths changed.
fix
Install either 'opentelemetry-exporter-otlp-proto-grpc' or 'opentelemetry-exporter-otlp-proto-http' (depending on the desired protocol) and update the import statement. For example, change 'from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter' to 'from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter' for the gRPC exporter.
affects: 1.12.0
breakingThe application failed with `ModuleNotFoundError: No module named 'opentelemetry.exporter.otlp.trace_exporter'`, indicating that the `opentelemetry-exporter-otlp` package is not installed.
fix
Install the missing OpenTelemetry OTLP exporter package. For example, run: `pip install opentelemetry-exporter-otlp`.
affects: *
Upgrade
Version history
1.44.0latest on PyPI · released Jul 16, 2026
Audit
Dependencies
opentelemetry-apirequiredRequired for exporting telemetry data
requestsoptionalFor HTTP communication when exporting data
grpciooptionalFor gRPC communication when exporting data
Agent activity
16 hits · last 30 days
node
12
OpenAI (training)
2
Resources
opentelemetry-exporter-otlp — pip install opentelemetry-exporter-otlp · libregistry