Replies: 1 comment 8 replies
-
Hi @MrRickwi . You are correct in finding that this is not possible. In OpenTelemetry, propagated spans are assumed to have their lifecycle fully managed by the creating process. In your case, you probably need to model this as two separate spans, connected either via standard parenting, or via a span Link, depending on how you would like to see the structure. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are instrumenting a workflow engine with trace support. We have a plugin that listens for the START and END events of a workflow. In the START event, we open a span and inject this into the workflow. In the END event, we would like to extract the injected span (traceparent, ...) from the workflow and end this one.
However, the following code seems not work maybe due to the fact that the span we get there is an ImmutableSpan.
START:
END:
Any ideas around there? Remembering the span in code is not feasible because the workflow engine may be restarted while the workflow is running, thus loosing any transinet information in the workflow.
Beta Was this translation helpful? Give feedback.
All reactions