{"library":"opentelemetry-exporter-zipkin-proto-http","title":"Zipkin Proto HTTP Span Exporter for OpenTelemetry","description":"The `opentelemetry-exporter-zipkin-proto-http` library provides a Span Exporter for OpenTelemetry Python, enabling applications to send tracing data to a Zipkin collector using Protobuf over HTTP. It is an integral part of the OpenTelemetry Python project, which maintains an active release cadence, with the current version being 1.41.0.","language":"python","status":"active","last_verified":"Mon May 18","install":{"commands":["pip install opentelemetry-exporter-zipkin-proto-http opentelemetry-sdk"],"cli":null},"imports":["from opentelemetry.exporter.zipkin.proto.http import ZipkinExporter","from opentelemetry.sdk.trace import TracerProvider","from opentelemetry.sdk.trace.export import BatchSpanProcessor","from opentelemetry import trace"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import os\nfrom opentelemetry import trace\nfrom opentelemetry.sdk.trace import TracerProvider\nfrom opentelemetry.sdk.trace.export import BatchSpanProcessor\nfrom opentelemetry.exporter.zipkin.proto.http import ZipkinExporter\n\n# Configure the TracerProvider\nprovider = TracerProvider()\ntrace.set_tracer_provider(provider)\n\n# Configure Zipkin Exporter\n# The endpoint can also be configured via OTEL_EXPORTER_ZIPKIN_ENDPOINT environment variable\nzipkin_endpoint = os.environ.get('OTEL_EXPORTER_ZIPKIN_ENDPOINT', 'http://localhost:9411/api/v2/spans')\nzipkin_exporter = ZipkinExporter(endpoint=zipkin_endpoint)\n\n# Add the exporter to a BatchSpanProcessor\nspan_processor = BatchSpanProcessor(zipkin_exporter)\nprovider.add_span_processor(span_processor)\n\n# Get a tracer and create a span\ntracer = trace.get_tracer(__name__)\n\nwith tracer.start_as_current_span(\"my-zipkin-span\") as span:\n    span.set_attribute(\"event.name\", \"Quickstart event\")\n    span.add_event(\"Processing data\")\n    print(\"Hello from OpenTelemetry with Zipkin!\")\n\n# Ensure all spans are exported before application exit\nprovider.shutdown()","lang":"python","description":"This quickstart demonstrates how to set up the Zipkin Proto HTTP Exporter to send traces. It initializes a `TracerProvider`, configures `ZipkinExporter` with an endpoint (defaulting to `http://localhost:9411/api/v2/spans` or an environment variable), attaches it to a `BatchSpanProcessor`, and creates a simple span. Remember to run a Zipkin collector (e.g., via `docker run --rm -d -p 9411:9411 --name zipkin openzipkin/zipkin`) for traces to be received.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-18","installed_version":"1.41.1","pypi_latest":"1.41.1","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":3.2,"avg_import_s":0.94,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"opentelemetry-exporter-zipkin-proto-http","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.87,"mem_mb":18.3,"disk_size":"27.4M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"opentelemetry-exporter-zipkin-proto-http","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":3.2,"import_time_s":0.6,"mem_mb":18.3,"disk_size":"30M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"opentelemetry-exporter-zipkin-proto-http","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":1.14,"mem_mb":19.2,"disk_size":"30.2M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"opentelemetry-exporter-zipkin-proto-http","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":3.1,"import_time_s":0.98,"mem_mb":19.2,"disk_size":"31M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"opentelemetry-exporter-zipkin-proto-http","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":null,"import_time_s":1.25,"mem_mb":19.6,"disk_size":"21.8M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"opentelemetry-exporter-zipkin-proto-http","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":2.8,"import_time_s":1.26,"mem_mb":19.6,"disk_size":"22M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"opentelemetry-exporter-zipkin-proto-http","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":null,"import_time_s":0.95,"mem_mb":20,"disk_size":"21.6M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"opentelemetry-exporter-zipkin-proto-http","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"noisy","install_time_s":2.9,"import_time_s":0.93,"mem_mb":20,"disk_size":"22M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"opentelemetry-exporter-zipkin-proto-http","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":0.75,"mem_mb":17.4,"disk_size":"26.7M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"opentelemetry-exporter-zipkin-proto-http","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":3.8,"import_time_s":0.68,"mem_mb":17.4,"disk_size":"30M"}]}}