Registry / observability / opentelemetry-exporter-otlp-proto-http

opentelemetry-exporter-otlp-proto-http

JSON →
library1.44.0pypypi✓ verified 25d ago

The OpenTelemetry Exporter for sending telemetry data via HTTP using the OpenTelemetry Protocol. Current version is 1.40.0, released regularly as part of the OpenTelemetry project.

pip install opentelemetry-exporter-otlp-proto-http
INSTALL
IMPORT
SIG · OPENTELEMETRY-EXPO
O
opentelemetry-exporter-otlp-proto-http
observabilitypythonv1.44.0
Install
3.7s avg
Import
Disk
28MB
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.000s · 29.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.7s · import 0.000s · 30MB
28MB installed
● package 28MB
Code
Verified usage

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

OTLPSpanExporter
from opentelemetry.exporter.otlp.proto.http.span_exporter import OTLPSpanExporter
from opentelemetry.exporter.otlp.proto.http.span_exporter import OTLPSpanExporter

A simple OpenTelemetry setup with an OTLP exporter to send metrics.

import os from opentelemetry import metrics from opentelemetry.exporter.otlp.proto.http import OTLPMetricExporter from opentelemetry.sdk.metrics import MeterProvider # Set up OpenTelemetry meter_provider = MeterProvider() metrics.set_meter_provider(meter_provider) # Create an exporter exporter = OTLPMetricExporter(endpoint=os.environ.get('OTEL_EXPORTER_OTLP_ENDPOINT', 'http://localhost:4317')) # Use the exporter meter = metrics.get_meter(__name__) metric = meter.create_counter('example_counter') metric.add(1)
Debug
Known issues
breakingChanges to `start_span` and `start_as_current_span` behavior in NoOpTracer.
fix
Update to the new behavior for correct span context propagation.
affects: 1.40.0
deprecatedThe `LoggingHandler` in `opentelemetry-sdk` is now deprecated.
fix
Use `opentelemetry-instrumentation-logging` instead.
affects: >=1.40.0
breakingThe import path for `OTLPMetricExporter` has changed. It is no longer directly available from `opentelemetry.exporter.otlp.proto.http`.
fix
Update the import statement to `from opentelemetry.exporter.otlp.proto.http.metric_exporter import OTLPMetricExporter`.
affects: opentelemetry-exporter-otlp>=1.11.0
breakingThe `OTLPMetricExporter` has been moved from `opentelemetry.exporter.otlp.proto.http`.
fix
Import `OTLPMetricExporter` from `opentelemetry.exporter.otlp.proto.http.metric_exporter` instead.
affects: >=1.40.0
Upgrade
Version history
1.44.0latest on PyPI · released Jul 16, 2026
Audit
Dependencies
opentelemetry-apirequiredRequired for core OpenTelemetry features.
requestsrequiredUsed for making HTTP requests.
Agent activity
46 hits · last 30 days
node
40
OpenAI (training)
3
Anthropic
1
Resources
opentelemetry-exporter-otlp-proto-http — pip install opentelemetry-exporter-otlp-proto-http · libregistry