You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,16 +150,17 @@ taskiq_broker.task(
150
150
151
151
## OpenTelemetry Support
152
152
153
-
**taskiq-faststream** supports distributed tracing with OpenTelemetry. To enable it, install the `otel` extra and pass `enable_otel=True` when creating the broker wrapper:
153
+
**taskiq-faststream** supports taskiq's OpenTelemetry middleware. To enable it, pass `OpenTelemetryMiddleware` when creating the broker wrapper:
154
154
155
155
```python
156
156
from faststream.nats import NatsBroker
157
157
from taskiq_faststream import BrokerWrapper
158
+
from taskiq.middlewares.otel_middleware import OpenTelemetryMiddleware
0 commit comments