Skip to main content

FastStream instrumentation for OpenTelemetry

PyPI - Version PyPI - Python Version

This library allows tracing requests made by the FastStream library.

Installation

pip install opentelemetry-instrumentation-faststream

Usage

Middlewares

Redis

from opentelemetry.instrumentation.faststream.middlewares import RedisOtelMiddleware

broker = RedisBroker("redis://localhost:6379", middlewares=[RedisOtelMiddleware])

Kafka

from opentelemetry.instrumentation.faststream.middlewares import KafkaOtelMiddleware

broker = KafkaBroker("redis://localhost:6379", middlewares=[KafkaOtelMiddleware])

RabbitMQ

from opentelemetry.instrumentation.faststream.middlewares import RabbitOtelMiddleware

broker = RabbitBroker("redis://localhost:6379", middlewares=[RabbitOtelMiddleware])

NATS

from opentelemetry.instrumentation.faststream.middlewares import NatsOtelMiddleware

broker = NatsBroker("redis://localhost:6379", middlewares=[NatsOtelMiddleware])

Instrumentation

from opentelemetry.instrumentation.faststream import FastStreamInstrumentator

# Instrument all brokers automatically
FastStreamInstrumentator().instrument()

# Uninstrument
FastStreamInstrumentator().uninstrument()

License

opentelemetry-instrumentation-faststream is distributed under the terms of the MIT license.

Metadata

Release files for opentelemetry-instrumentation-faststream 0.1.3

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

Source distribution (sdist)

Source distribution for opentelemetry-instrumentation-faststream 0.1.3
File Size Uploaded Provenance Actions
opentelemetry_instrumentation_faststream-0.1.3.tar.gz 6.0 kB Without provenance Details for opentelemetry_instrumentation_faststream-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opentelemetry-instrumentation-faststream 0.1.3
File Interpreter ABI Platform Actions
opentelemetry_instrumentation_faststream-0.1.3-py3-none-any.whl Python 3 none any Details for opentelemetry_instrumentation_faststream-0.1.3-py3-none-any.whl

Total release size: 12.7 kB

Release files / opentelemetry_instrumentation_faststream-0.1.3.tar.gz

Download URL opentelemetry_instrumentation_faststream-0.1.3.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cb56d3ab3d39977a9ee43be48e24c67ee7e3db102295dd20221116bb45ae1538
BLAKE2b-256 checksum
How to use checksums
8495a1009dec6b4980957315d4ef136b24d18c55d8d7cda4e6fab3d37b01d177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Release files / opentelemetry_instrumentation_faststream-0.1.3-py3-none-any.whl

Download URL opentelemetry_instrumentation_faststream-0.1.3-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfeea723453e6553873962744a9d74c636eb590b030573844ca6b1be4fa0938a
BLAKE2b-256 checksum
How to use checksums
68219a69eaa366265c76a6dbf05b3069b315e355cc4cd768147d9c06d0c012ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.3

Security for opentelemetry-instrumentation-faststream 0.1.3

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.3 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