Results 6 comments of Nico Mürdter

You can't get the `SpanBuilder` directly but the `OtelData` from which you then can retrieve the `SpanBuilder`. With that you don't even need to recursively traverse the parent `SpanRef`. Here's...

In my case I have a remote `trace_id` which I feed into my spans with: ```rust span.set_parent(opentelemetry::Context::new().with_remote_span_context( opentelemetry::trace::SpanContext::new(...), )); ``` With this the `OtelData.parent_ctx.span().span_context()` will return this said `SpanContext` with...

> Thanks, do you have any public code where i can review how do you use that??? No sorry that's extracted and adapted from a closed source project. However I...

> a gist or a complete example would be appreciated I just remembered about this thread and created a small example project to showcase how we achieve a stable `trace_id`...

> @nicmue since you are now co-author here, do you want to sign Google's CLA? Alternatively, I can remove the `Co-authored-by` lines from the commits if you'd prefer. Sure why...

> The CLA bot check failure has some info: https://github.com/google/glome/pull/175/checks?check_run_id=26263501184. tl;dr: sign in to https://cla.developers.google.com/clas and agree to the terms. Done you can try to retrigger. :)