Registry /
observability / opentelemetry-exporter-otlp-proto-http
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.
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
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.fixUpdate to the new behavior for correct span context propagation.
affects: 1.40.0
deprecatedThe `LoggingHandler` in `opentelemetry-sdk` is now deprecated.fixUse `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`.fixUpdate 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`.fixImport `OTLPMetricExporter` from `opentelemetry.exporter.otlp.proto.http.metric_exporter` instead.
affects: >=1.40.0
Audit
Dependencies
opentelemetry-apirequiredRequired for core OpenTelemetry features.
requestsrequiredUsed for making HTTP requests.