Find answers from the community

Updated 8 months ago

Hello, Everyone!

At a glance
Hello, Everyone!
Thank you for bringing this library to life! It helped me a lot in my project. There is one limitation I can't resolve, so I hope to find some advice/tips here. Any help is much appreciated!
In short: is it possible to group spans created by dispatcher? Assuming two requests are being handled concurrently, how to relate various spans to one request or another?
The detailed explanation with code snippets and things I've tried are described in the attached markdown. It doesn't contain any links, just formatted text with arbitrary code snippets and output examples to clearly explain the challenge.
@Logan M, I'd be much obliged if you could take a look!
L
A
3 comments
every span has a parent id. If there are two concurrent requests, their parents will be different

Its built to be async and thread safe
I see, thank you! This was my observation as well. Is it possible to effectively use a Dispatcher on a generator function to create a root span containing all the spans created in the course of that generator consumption?
yea you definitely can πŸ‘€ This is how streaming events for llms work right now
Add a reply
Sign up and join the conversation on Discord