Skip to main content

FastStream instrumentation for OpenTelemetry

Reason this release was yanked:

Broken on some instances

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentation_faststream-0.1.0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_faststream-0.1.0.tar.gz
Algorithm Hash digest
SHA256 346e0531da731bb1f9114f2bf93a670c2d97fc6c9916adaa1e20378a42556ea9
MD5 3b4c1946dc2da024c605fceeb2e58a9b
BLAKE2b-256 0db6cd08f02d96dd6529c862390c71e43136de97bad978a00ef634968b72d8d5

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_faststream-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_faststream-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78f4a89017d5f63a779ebc84c4e30a67f76f606c80eafd1db0dbac970c0558d1
MD5 e0073e3e38eddc92573dafb21c369d04
BLAKE2b-256 a4df1e4087c673222af0ae874bc4e2687d23a78e590f8f1feea14eb5f7c853bd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page