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

opentelemetry-exporter-otlp-proto-http

JSON →
library1.40.0pypypiunverified

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.

observabilityhttp-networkingserialization
pip install opentelemetry-exporter-otlp-proto-http
Install & Compatibility
Where this runs
tested against v1.42.1 · 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
glibc
py 3.10
3/5 runs
3/5 runs
py 3.11
3/5 runs
3/5 runs
py 3.12
3/5 runs
3/5 runs
py 3.13
3/5 runs
3/5 runs
py 3.9
3/5 runs
3/5 runs
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.42.1latest on PyPI
Audit
Dependencies
opentelemetry-apirequiredRequired for core OpenTelemetry features.
requestsrequiredUsed for making HTTP requests.
Agent activity
70 hits · last 30 days
node
8
ahrefsbot
2
seranking-bot
1
Resources