{"library":"opentelemetry-contrib-instrumentations","type":"library","category":null,"description":"The `opentelemetry-contrib-instrumentations` library is a metapackage that conveniently installs a collection of community-maintained OpenTelemetry Python instrumentation packages. These instrumentations automatically capture telemetry data (traces, metrics, logs) from various third-party frameworks, databases, and HTTP clients without requiring manual code changes to the instrumented libraries themselves. The project is actively developed and follows a frequent release cadence, often aligning with the core OpenTelemetry Python SDK, typically on a monthly or bi-monthly schedule, with `b` (beta) versions being common.","language":"python","status":"active","version":"0.62b0","tags":["observability","opentelemetry","tracing","metrics","instrumentation","auto-instrumentation","contrib"],"install":[{"cmd":"pip install opentelemetry-contrib-instrumentations opentelemetry-sdk opentelemetry-exporter-otlp opentelemetry-distro","imports":["from opentelemetry.instrumentation.requests import RequestsInstrumentor","from opentelemetry.sdk.resources import Resource\nfrom opentelemetry.sdk.trace import TracerProvider\nfrom opentelemetry.sdk.trace.export import ConsoleSpanExporter, SimpleSpanProcessor\nfrom opentelemetry.instrumentation.distro import OpenTelemetryDistro\n\ndef configure_opentelemetry(service_name: str):\n    resource = Resource.create({\"service.name\": service_name})\n    tracer_provider = TracerProvider(resource=resource)\n    span_processor = SimpleSpanProcessor(ConsoleSpanExporter())\n    tracer_provider.add_span_processor(span_processor)\n    \n    # Set the global tracer provider\n    from opentelemetry import trace\n    trace.set_tracer_provider(tracer_provider)\n\n    # Instrument all installed contrib instrumentations\n    distro = OpenTelemetryDistro()\n    distro.instrument()\n    # Or, to instrument specific packages:\n    # from opentelemetry.instrumentation.requests import RequestsInstrumentor\n    # RequestsInstrumentor().instrument()"]}],"homepage":null,"github":"https://github.com/open-telemetry/opentelemetry-python-contrib","docs":null,"changelog":null,"pypi":"https://pypi.org/project/opentelemetry-contrib-instrumentations/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":8.8,"avg_import_s":0.89,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/opentelemetry-contrib-instrumentations/compatibility"},"provenance":{"verified_status":"install_fail","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Sun Jul 05","install_tag":null}}