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-grpcVerified import paths — ran on the pinned version, not inferred.
A simple example of using the OTLP exporter to start a span.
Ensure that the current span context is properly propagated.
Use opentelemetry-instrumentation-logging instead.
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.
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`.
No dependency data recorded yet.