Using in tracing? #57
Replies: 1 comment
-
|
My intended use case was in In general, I would strongly advise against the use of unbounded queues of log messages. This can lead to memory exhaustion when the background task or thread cannot keep up with the production of new messages. It's almost always preferable to drop messages when a channel is full, and have some mechanism for indicating to the user that this took place. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, potentially a newbie question. You mentioned in the FAQ that this was intended for tracing
Subscribers: how would you resolve the case where the buffer is full? Would this involve blocking until it can be sent? AFAIK theSubscriberAPI is entirely synchronous, so I assume you can't async send. I'm curious becausetracing-forestcurrently uses a Tokio unbounded queue, and I'm curious about alternatives.Beta Was this translation helpful? Give feedback.
All reactions