You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem?
When batch-processing messages from a queue, it is not great to have all message spans related to the parent span, but rather be traces on their own.
In the Java instrumentation, there is a convenience builder method called setNoParent, which sets an empty context to create a fresh trace.
Describe the solution you'd like
Add a convenience method to the SpanBuilder to ease creation of parent-less spans.
Describe alternatives you've considered
There's an unintuitive workaround which requires instrinsic knowledge about the SDK:
$span = $tracer-spanBuilder('process')
->setParent(Context::getRoot()) // set an empty root
->startSpan();
Additional context
Add any other context about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
When batch-processing messages from a queue, it is not great to have all message spans related to the parent span, but rather be traces on their own.
In the Java instrumentation, there is a convenience builder method called
setNoParent
, which sets an empty context to create a fresh trace.Describe the solution you'd like
Add a convenience method to the SpanBuilder to ease creation of parent-less spans.
Describe alternatives you've considered
There's an unintuitive workaround which requires instrinsic knowledge about the SDK:
Additional context
Add any other context about the feature request here.
The text was updated successfully, but these errors were encountered: