Replies: 1 comment
|
Worth checking For keeping a breadcrumb back to the originating request without actually nesting the timing: span links are the mechanism for that, a link records a reference to another span/trace without making it a parent for duration-rollup purposes. So the shape that gets you both "doesn't inflate the request's duration" and "traceable back to what triggered it" is roughly: capture the trace/span id you want to reference before entering Given the API surface for links/ |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The issue I have is that some requests kick off background activities.
Think something like:
The issue I am facing is that the span started within
setTimeoutgets associated with the parent span.This is a problem when trying to identify things like requests that take a long time because now the request-response time also includes the span that was started without blocking the main request-response.
I think the correct solution is to pass
parentSpan: nulltostartSpan, but wanted to confirm that that's the idiomatic way.And if I do this, is there some sane way to still comment/leave a link to the parent span?
All reactions