Skip to content

Creating Span Links in Auto Instrumentation - How to use a custom Tracer? #6082

Answered by trask
noctchillin asked this question in Q&A
Discussion options

You must be logged in to vote

hi @noctchillin! this is going to be tricky. There are spec discussions to relax the requirement that span links are only added at span start, but not certain how this will end up.

I'd recommend either creating a child span with the links, or creating a span event with trace_id/span_id attributes.

Another option could be to add trace_id/span_id attributes on the auto instrumented span, and use a custom exporter to translate that back to span links before passing on to your (otlp?) exporter

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@noctchillin
Comment options

@noctchillin
Comment options

Answer selected by noctchillin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants