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

opentelemetry-exporter-otlp-proto-grpc

JSON →
library1.44.0pypypi✓ verified 25d ago

This library provides an exporter for sending telemetry data to the OpenTelemetry Collector using Protobuf over gRPC. The current version is 1.40.0, and releases are made regularly with updates and fixes.

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

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

OTLPExporter
from opentelemetry.exporter.otlp.proto.grpc.exporter import OTLPExporter
from opentelemetry.exporter.otlp.proto.grpc.exporter import OTLPExporter

A simple example of using the OTLP exporter to start a span.

import os from opentelemetry import trace from opentelemetry.exporter.otlp.proto.grpc import OTLPExporter exporter = OTLPExporter(endpoint=os.environ.get('OTLP_ENDPOINT', 'localhost:4317')) tracer = trace.get_tracer(__name__) with tracer.start_as_current_span('example-span'): print('This is a traced span')
Debug
Known issues
breakingInvalid span will no longer be returned in NoOpTracer methods.
fix
Ensure that the current span context is properly propagated.
affects: >=1.40.0
deprecatedLoggingHandler in opentelemetry-sdk is deprecated.
fix
Use opentelemetry-instrumentation-logging instead.
affects: <1.40.0
breakingThe class 'OTLPExporter' has been removed or renamed within the 'opentelemetry.exporter.otlp.proto.grpc' module and is no longer directly importable.
fix
Use 'OTLPSpanExporter' for traces or 'OTLPMetricExporter' for metrics. The import path has also changed; for example, use 'from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter' for traces or 'from opentelemetry.exporter.otlp.proto.grpc.metric_exporter import OTLPMetricExporter' for metrics.
affects: opentelemetry-exporter-otlp-proto-grpc>=1.16.0
breakingThe `OTLPExporter` class is no longer available directly under `opentelemetry.exporter.otlp.proto.grpc` due to package restructuring.
fix
Update the import statement. For general OTLP/gRPC export, import `OTLPGRPCExporter` from `opentelemetry.exporter.otlp.proto.grpc.exporter`. For trace exporting, import `OTLPTraceExporter` from `opentelemetry.exporter.otlp.proto.grpc.trace_exporter`. For metric exporting, import `OTLPMetricExporter` from `opentelemetry.exporter.otlp.proto.grpc.metric_exporter`.
affects: opentelemetry-exporter-otlp>=1.17.0
Upgrade
Version history
1.44.0latest on PyPI · released Jul 16, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
28
OpenAI (training)
4
Resources
opentelemetry-exporter-otlp-proto-grpc — pip install opentelemetry-exporter-otlp-proto-grpc · libregistry