How is current span shared across the context? #885
Unanswered
agentshowers
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@agentshowers The value of using Here is how Is using convenience methods like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone.
I'm still very new at open telemetry, we're currently just playing around with it on our production setup. We have some other instrumentation in place and were trying to re-use the same hooks for Open Telemetry. To do it, I was expecting that once a span is started (via
start_root_span
) would update the current span. However, if I do something like this, the IDs are different:Span ID
andCurrent ID
are two different IDs while I expected them to be same. Eventually what would want to do is something like this:These two methods would be called by the hooks in my code and would either start a root span or a child span with the current span as the parent. All of this is inside the same request and thread. Is there a way to achieve this that I'm missing? All the examples I've seen so far use the
in_span
way, haven't figured out how to properly use thestart_span
/start_root_span
methodsBeta Was this translation helpful? Give feedback.
All reactions