Child spans for "fire and forget" remote work? #3413
-
I'm trying to confirm whether what I want to do is possible with Jaeger or not.. I want to have a trace that describes a process that calls several web endpoints in a "fire and forget" manner, meaning that it doesn't wait for their responses - but I'd still like for the work in those endpoints to be recorded as child spans of the trace. This would mean that the total time for the parent process' span would end before the child spans of the web endpoints finished and I've never seen any examples of Jaeger traces where that is the case. I know that this can work if I do wait for the web endpoints to respond because that will keep the parent span "open" but that's not the model that I'd like to use. In case it makes a difference, I'm writing my code in C# and using the OpenTelemetry-dotnet library. Any pointers would be much appreciated - even if it is only definitive information that this sort of model is not a good fit for Jaeger tracing! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
It's perfectly fine for parent span to finish before children. This is how std OpemTracing instrumentation for Kafka works. I have a chapter in my book on that, with code example on GitHub. |
Beta Was this translation helpful? Give feedback.
It's perfectly fine for parent span to finish before children. This is how std OpemTracing instrumentation for Kafka works. I have a chapter in my book on that, with code example on GitHub.