{"library":"opentelemetry-exporter-jaeger-thrift","title":"Jaeger Thrift Exporter for OpenTelemetry","description":"The opentelemetry-exporter-jaeger-thrift library allows exporting OpenTelemetry traces to Jaeger using the Thrift protocol over UDP (to an agent) or HTTP (to a collector). This specific exporter, currently at version 1.21.0, is officially deprecated and no longer actively tested; users are strongly encouraged to migrate to the OpenTelemetry Protocol (OTLP) exporter, as Jaeger natively supports OTLP since version 1.35. The broader OpenTelemetry Python project has a regular, frequent release cadence, but this exporter module has ceased active development and testing.","language":"python","status":"maintenance","last_verified":"Fri May 15","install":{"commands":["pip install opentelemetry-exporter-jaeger-thrift"],"cli":null},"imports":["from opentelemetry.exporter.jaeger.thrift import JaegerExporter"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom opentelemetry import trace\nfrom opentelemetry.exporter.jaeger.thrift import JaegerExporter\nfrom opentelemetry.sdk.resources import Resource, SERVICE_NAME\nfrom opentelemetry.sdk.trace import TracerProvider\nfrom opentelemetry.sdk.trace.export import BatchSpanProcessor\n\n# Ensure Jaeger Agent is running, e.g., via Docker: docker run -d --name jaeger -p 6831:6831/udp -p 16686:16686 jaegertracing/all-in-one:latest\n\n# Configure the TracerProvider\ntrace.set_tracer_provider(\n    TracerProvider(\n        resource=Resource.create({SERVICE_NAME: \"my-jaeger-service\"})\n    )\n)\n\n# Configure JaegerExporter (defaults to agent_host_name='localhost', agent_port=6831)\njaeger_exporter = JaegerExporter(\n    service_name=os.environ.get('OTEL_SERVICE_NAME', 'my-python-app'),\n    agent_host_name=os.environ.get('JAEGER_AGENT_HOST', 'localhost'),\n    agent_port=int(os.environ.get('JAEGER_AGENT_PORT', 6831))\n)\n\n# Add the exporter to a BatchSpanProcessor and then to the TracerProvider\ntrace.get_tracer_provider().add_span_processor(\n    BatchSpanProcessor(jaeger_exporter)\n)\n\n# Get a tracer and create some spans\ntracer = trace.get_tracer(__name__)\n\nwith tracer.start_as_current_span(\"root-operation\"):\n    print(\"Starting root operation...\")\n    with tracer.start_as_current_span(\"child-work\"):\n        print(\"Performing child work...\")\n    print(\"Root operation finished.\")\n\n# Spans will be sent to Jaeger Agent, viewable at http://localhost:16686 (if running locally)\n","lang":"python","description":"This example demonstrates how to configure the Jaeger Thrift exporter to send traces to a local Jaeger Agent. It sets up a TracerProvider with a service name, initializes the `JaegerExporter` (which by default connects to `localhost:6831`), adds it to a `BatchSpanProcessor`, and then creates a simple trace with parent and child spans. Ensure a Jaeger Agent is running and accessible on the specified host and port for traces to be received. For production environments or newer Jaeger versions, migrating to the OTLP exporter is recommended.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-15","installed_version":"1.21.0","pypi_latest":"1.21.0","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":4.1,"avg_import_s":null,"wheel_type":"sdist"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"opentelemetry-exporter-jaeger-thrift","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"23.7M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"opentelemetry-exporter-jaeger-thrift","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":4.1,"import_time_s":null,"mem_mb":null,"disk_size":"24M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"opentelemetry-exporter-jaeger-thrift","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"26.3M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"opentelemetry-exporter-jaeger-thrift","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":4.2,"import_time_s":null,"mem_mb":null,"disk_size":"27M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"opentelemetry-exporter-jaeger-thrift","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"18.0M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"opentelemetry-exporter-jaeger-thrift","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":4,"import_time_s":null,"mem_mb":null,"disk_size":"18M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"opentelemetry-exporter-jaeger-thrift","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"17.7M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"opentelemetry-exporter-jaeger-thrift","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":3.6,"import_time_s":null,"mem_mb":null,"disk_size":"18M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"opentelemetry-exporter-jaeger-thrift","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":null,"import_time_s":null,"mem_mb":null,"disk_size":"23.1M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"opentelemetry-exporter-jaeger-thrift","exit_code":0,"wheel_type":"sdist","failure_reason":null,"import_side_effects":"broken","install_time_s":4.7,"import_time_s":null,"mem_mb":null,"disk_size":"24M"}]}}