MyGit

0.5.7

airtai/faststream

版本发布时间: 2024-05-19 20:11:03

airtai/faststream最新发布版本:0.5.28(2024-10-21 03:51:54)

What's Changed

Finally, FastStream supports OpenTelemetry in a native way to collect the full trace of your services! Big thanks for @draincoder for that!

First of all you need to install required dependencies to support OpenTelemetry:

pip install faststream[otel]

Then you can just add a middleware for your broker and that's it!

from faststream import FastStream
from faststream.nats import NatsBroker
from faststream.nats.opentelemetry import NatsTelemetryMiddleware

broker = NatsBroker(
    middlewares=(
        NatsTelemetryMiddleware(),
    )
)
app = FastStream(broker)

To find detailt information just visit our documentation aboout telemetry

P.S. The release includes basic OpenTelemetry support - messages tracing & basic metrics. Baggage support and correct spans linking in batch processing case will be added soon.

New Contributors

Full Changelog: https://github.com/airtai/faststream/compare/0.5.6...0.5.7

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-05-19发行的版本