{"id":362,"library":"opentelemetry-exporter-otlp-proto-common","title":"OpenTelemetry Exporter OTLP Proto Common","description":"This library provides Protobuf encoding for OpenTelemetry. The current version is 1.40.0, released regularly as part of the OpenTelemetry project. It is utilized to integrate with various tracing and monitoring systems.","status":"active","version":"1.40.0","language":"python","source_language":"en","source_url":"https://github.com/open-telemetry/opentelemetry-python","tags":["OpenTelemetry","Tracing","Protobuf","Monitoring"],"install":[{"cmd":"pip install opentelemetry-exporter-otlp-proto-common","lang":"bash","label":"Install the OpenTelemetry Exporter OTLP Proto Common"}],"dependencies":[{"reason":"Required for full functionality of OpenTelemetry SDK.","package":"opentelemetry-sdk","optional":true}],"imports":[{"note":"Ensure to import from the correct subpackage.","symbol":"NoOpTracer","correct":"from opentelemetry.exporter.otlp.proto.common import NoOpTracer"}],"quickstart":{"code":"import os\nfrom opentelemetry.exporter.otlp.proto.common import NoOpTracer\n\ntracer = NoOpTracer()\n\nwith tracer.start_as_current_span('example_span'):\n    print('Hello, OpenTelemetry!')","lang":"python","description":"This code initializes a NoOpTracer and starts a span."},"warnings":[{"fix":"Update implementations to rely on the new behavior of propagating span context.","message":"Changes in `start_span` and `start_as_current_span` in NoOpTracer.","severity":"breaking","affected_versions":">=1.40.0"},{"fix":"Switch to using `opentelemetry-instrumentation-logging` for logging purposes.","message":"`LoggingHandler` is deprecated in favor of `opentelemetry-instrumentation-logging`.","severity":"deprecated","affected_versions":"<1.40.0"}],"env_vars":null,"last_verified":"2026-05-12T13:17:43.125Z","next_check":"2026-06-26T00:00:00.000Z","problems":[{"fix":"pip install opentelemetry-proto","cause":"The 'opentelemetry-proto' package, which provides the necessary Protobuf definitions for OTLP data serialization, is not installed.","error":"ModuleNotFoundError: No module named 'opentelemetry.proto'"},{"fix":"from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OtlpSpanExporter  # Or .http.trace_exporter for HTTP","cause":"The `OtlpSpanExporter` class is provided by transport-specific OTLP exporter packages (e.g., `opentelemetry-exporter-otlp-grpc` or `opentelemetry-exporter-otlp-http`), not directly by `opentelemetry-exporter-otlp-proto-common` which only handles the Protobuf encoding logic.","error":"ImportError: cannot import name 'OtlpSpanExporter' from 'opentelemetry.exporter.otlp.proto.common'"},{"fix":"pip install opentelemetry-sdk","cause":"The core OpenTelemetry SDK package, which contains the necessary components for setting up tracing, metrics, and logging, is not installed.","error":"ModuleNotFoundError: No module named 'opentelemetry.sdk.trace'"}],"ecosystem":"pypi","meta_description":null,"install_score":0,"install_tag":"stale","quickstart_score":0,"quickstart_tag":"stale","pypi_latest":null,"install_checks":{"last_tested":"2026-05-12","tag":"stale","tag_description":"widespread failures or data too old to trust","results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"default","exit_code":1,"wheel_type":null,"failure_reason":null,"install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":null}]},"quickstart_checks":{"last_tested":"2026-04-23","tag":"stale","tag_description":"widespread failures or data too old to trust","results":[{"runtime":"python:3.10-alpine","exit_code":1},{"runtime":"python:3.10-slim","exit_code":1},{"runtime":"python:3.11-alpine","exit_code":1},{"runtime":"python:3.11-slim","exit_code":1},{"runtime":"python:3.12-alpine","exit_code":1},{"runtime":"python:3.12-slim","exit_code":1},{"runtime":"python:3.13-alpine","exit_code":1},{"runtime":"python:3.13-slim","exit_code":1},{"runtime":"python:3.9-alpine","exit_code":1},{"runtime":"python:3.9-slim","exit_code":1}]}}