Skip to content

Trace id changes while creating custom span #3905

Answered by jkwatson
balkrishan333 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. You definitely can add attributes to an existing Span.
  2. Since there is already a Span in the current Context, you don't need to put it in again when parenting your new span. Just don't manually specify a parent on your new Span and it'll use the one already in the current Context.

Replies: 1 comment 15 replies

Comment options

You must be logged in to vote
15 replies
@balkrishan333
Comment options

@jkwatson
Comment options

@balkrishan333
Comment options

@jkwatson
Comment options

@balkrishan333
Comment options

Answer selected by balkrishan333
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