Skip to main content

OpenCensus FastAPI Integration

pypi

Installation

pip install opencensus-ext-fastapi

Usage

from fastapi import FastAPI
from opencensus.ext.fastapi.fastapi_middleware import FastAPIMiddleware

app = FastAPI(__name__)
app.add_middleware(FastAPIMiddleware)

@app.get('/')
def hello():
    return 'Hello World!'

Additional configuration can be provided, please read Customization for a complete reference.

app.add_middleware(
    FastAPIMiddleware,
    excludelist_paths=["paths"],
    excludelist_hostnames=["hostnames"],
    sampler=sampler,
    exporter=exporter,
    propagator=propagator,
)

References

Metadata

Release files for opencensus-ext-fastapi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opencensus-ext-fastapi 0.1.0
File Size Uploaded Provenance Actions
opencensus-ext-fastapi-0.1.0.tar.gz 4.1 kB Without provenance Details for opencensus-ext-fastapi-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opencensus-ext-fastapi 0.1.0
File Interpreter ABI Platform Actions
opencensus_ext_fastapi-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for opencensus_ext_fastapi-0.1.0-py2.py3-none-any.whl

Total release size: 9.0 kB

Release files / opencensus-ext-fastapi-0.1.0.tar.gz

Download URL opencensus-ext-fastapi-0.1.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b63b51b2233a8afc7820ab1f4b13b0c5e63aa86c12c0035f4679709dd1afa0fb
BLAKE2b-256 checksum
How to use checksums
39fa7be884791975481c1e3a891a2ded94c4f684fb1ecbca9d49162a1ca074a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9

Release files / opencensus_ext_fastapi-0.1.0-py2.py3-none-any.whl

Download URL opencensus_ext_fastapi-0.1.0-py2.py3-none-any.whl
Size 5.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ed524cdc8c8d479b3b15d155c0b0afbb54ade8c98ae6a179e74b7c8bcd8d8977
BLAKE2b-256 checksum
How to use checksums
2c1b3424a575187e67a9acff7c9b638da3c6907d9821cfb3151861723b3ce397
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.9

Security for opencensus-ext-fastapi 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page