{"id":365,"library":"opentelemetry-exporter-otlp","title":"OpenTelemetry Collector Exporters","description":"The opentelemetry-exporter-otlp library provides OpenTelemetry Collector exporters, allowing users to send telemetry data to OpenTelemetry-supported backend systems. Current version: 1.40.0, released with a cadence of regular updates enhancing functionality and fixing issues.","status":"active","version":"1.40.0","language":"python","source_language":"en","source_url":"https://github.com/open-telemetry/opentelemetry-python","tags":["opentelemetry","telemetry","exporter"],"install":[{"cmd":"pip install opentelemetry-exporter-otlp","lang":"bash","label":"Install opentelemetry-exporter-otlp"}],"dependencies":[{"reason":"Required for exporting telemetry data","package":"opentelemetry-api","optional":false},{"reason":"For HTTP communication when exporting data","package":"requests","optional":true},{"reason":"For gRPC communication when exporting data","package":"grpcio","optional":true}],"imports":[{"wrong":"from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter","symbol":"OTLPSpanExporter","correct":"from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter"}],"quickstart":{"code":"import os\nfrom opentelemetry import trace\nfrom opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter\nfrom opentelemetry.sdk.resources import Resource\nfrom opentelemetry.sdk.trace import TracerProvider\nfrom opentelemetry.trace import set_tracer_provider\n\n# Set up the OTLP exporter\nexporter = OTLPSpanExporter(endpoint=os.environ.get('OTEL_EXPORTER_OTLP_ENDPOINT', 'localhost:4317'))\n\nset_tracer_provider(TracerProvider(resource=Resource.create({'service.name': 'example-service'})))\n\ntracer = trace.get_tracer(__name__)\n\n# Example usage\nwith tracer.start_as_current_span('example-span'):\n    print('Hello, OpenTelemetry!')","lang":"python","description":"A simple quickstart example to set up an OTLP exporter and send telemetry data."},"warnings":[{"fix":"Update code to handle the new behavior in NoOpTracer.","message":"The behavior of start_span and start_as_current_span in NoOpTracer has changed; it now propagates the span context properly.","severity":"breaking","affected_versions":"1.40.0"},{"fix":"Switch to using opentelemetry-instrumentation-logging for logging.","message":"LoggingHandler in opentelemetry-sdk is deprecated; use opentelemetry-instrumentation-logging instead.","severity":"deprecated","affected_versions":"<1.40.0"},{"fix":"Install either 'opentelemetry-exporter-otlp-proto-grpc' or 'opentelemetry-exporter-otlp-proto-http' (depending on the desired protocol) and update the import statement. For example, change 'from opentelemetry.exporter.otlp.trace_exporter import OTLPSpanExporter' to 'from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter' for the gRPC exporter.","message":"The module 'opentelemetry.exporter.otlp.trace_exporter' no longer exists. The OTLP exporter functionality was split into protocol-specific packages (gRPC and HTTP) and their import paths changed.","severity":"breaking","affected_versions":"1.12.0"},{"fix":"Install the missing OpenTelemetry OTLP exporter package. For example, run: `pip install opentelemetry-exporter-otlp`.","message":"The application failed with `ModuleNotFoundError: No module named 'opentelemetry.exporter.otlp.trace_exporter'`, indicating that the `opentelemetry-exporter-otlp` package is not installed.","severity":"breaking","affected_versions":"*"}],"env_vars":null,"search_vec":"'1.40.0':28 'allow':14 'backend':24 'cadenc':32 'collector':2,12 'current':26 'data':19 'enhanc':36 'export':3,7,13,43 'fix':39 'function':37 'issu':40 'librari':9 'opentelemetri':1,6,11,22,41 'opentelemetry-exporter-otlp':5 'opentelemetry-support':21 'otlp':8 'provid':10 'regular':34 'releas':29 'send':17 'support':23 'system':25 'telemetri':18,42 'updat':35 'user':15 'version':27","created_at":"2026-03-28T10:52:20.819933+00:00","updated_at":"2026-04-16T17:38:34.640991+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":0,"quickstart_score":0,"quickstart_tag":"stale","pypi_latest":"1.44.0","cli_name":"","cli_version":null,"type":"library","homepage":"https://opentelemetry.io","github":"https://github.com/open-telemetry/opentelemetry-python","docs":null,"changelog":null,"pypi":"https://pypi.org/project/opentelemetry-exporter-otlp/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["observability","http-networking","serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-30","last_verified":"2026-08-27","next_check":"2026-07-30","install_tag":"stale"}}