--- id: opencensus-ext-requests version: "0.8.0" license: Apache-2.0 license_treatment: permissive maintenance: abandoned --- # opencensus-ext-requests — OpenCensus Requests Integration License: permissive · Maintenance: abandoned · Downloads: 140.7K/mo ## What it is and what it does This package adds automatic tracing instrumentation to HTTP requests made via the requests library, integrating them into OpenCensus's distributed tracing system. When enabled, it captures request metadata (URL, method, status code) and emits trace spans that can be exported to observability backends. It depends on opencensus, requests, and wrapt, and is configured by registering 'requests' in OpenCensus's trace_integrations list. The package allows you to exclude specific hostnames from tracing (useful to avoid tracing calls to your own exporters) and integrates transparently once the integration is registered. However, the project is archived and abandoned since August 2022, with no ongoing maintenance or updates. It remains functional for existing deployments but should not be chosen for new projects without careful consideration of long-term support needs. Use it for: - Trace outbound HTTP requests in a microservice to understand call chains and latency across service boundaries. - Collect request metadata (method, URL, status) automatically without modifying individual request call sites. - Exclude internal exporter traffic from traces to keep trace data clean and reduce noise. - Integrate requests tracing into an existing OpenCensus observability pipeline for unified telemetry. - Debug HTTP request failures by correlating request traces with other service telemetry. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Integrates OpenCensus distributed tracing with the requests HTTP library, automatically collecting trace data for HTTP requests including URL, method, and response status. No for new projects. The package is abandoned and unmaintained since August 2022. If you are already using OpenCensus and need requests tracing, it may work, but you should evaluate actively maintained alternatives (such as OpenTelemetry instrumentation for requests) before committing to this package. Existing deployments can continue to use it if it is stable in your environment, but do not adopt it for new work. ## Install pip install opencensus-ext-requests uv add opencensus-ext-requests poetry add opencensus-ext-requests ## Installing opencensus-ext-requests Before you install: Low install friction with three straightforward runtime dependencies. However, the package is abandoned as of 2022-08-03 with no active maintenance; the repository is archived. Use only if you are already committed to the OpenCensus ecosystem and cannot migrate to an actively maintained alternative. License in practice: Licensed under Apache-2.0 (permissive), which allows commercial and private use with minimal restrictions. No notable licensing constraints for most users. Quickstart: pip install opencensus-ext-requests import requests from opencensus.trace import config_integration from opencensus.trace.tracer import Tracer config_integration.trace_integrations(['requests']) tracer = Tracer() with tracer.span(name='parent'): response = requests.get(url='https://www.wikipedia.org/wiki/Rabbit') Requires OpenCensus to be installed and configured; the tracer must be initialized before requests are made within a traced span. Verify before relying: - Whether the package works reliably with modern Python versions beyond 3.9 despite classifier claims. - Whether abandonment affects compatibility with recent versions of requests or wrapt dependencies. - Whether there are known issues or breaking changes in the final 0.8.0 release. ## Package facts - License: Apache-2.0 (permissive) - Python support: unspecified - Install friction: low - Maintenance: abandoned - Downloads: 140.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags opencensus requests tracing, http request tracing, distributed tracing requests library, request instrumentation, trace http calls, opencensus integration, request span collection, distributed-tracing, observability, abandoned [View on SkillFed](https://skillfed.io/packages/opencensus-ext-requests) · [View on PyPI](https://pypi.org/project/opencensus-ext-requests/)