Replies: 2 comments
-
|
@a14n you can use our builtin middlewares as a reference - https://github.com/ag2ai/faststream/blob/main/faststream/prometheus/middleware.py |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
My confusion comes from the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Playing with middlewares I didn't expect that a new middleware was initialized for every incoming message. How can I create a middleware that need to collect data (have a state) among several messages ? For instance a middleware that count the total of incoming messages.
Beta Was this translation helpful? Give feedback.
All reactions