Skip to content

confusion regarding kong.tracing:active_span() API #14254

Closed Answered by samugi
khaled4vokalz asked this question in Help
Discussion options

You must be logged in to vote

@khaled4vokalz hi, thanks for opening this discussion. The commit you linked is actually something in between a fix and a change in behavior: the active_span() function was not affected as it was already working fine, however the spans were not set as active upon creation (which is allowed), and this resulted in the behavior you describe, where the only active span returned was the root span.

Because of the small change in behavior, changes like this are usually not backported to avoid producing unexpected impact on users who might be relying on the existing behavior. I would recommend upgrading to the latest version of Kong in this case.
Let me know if you have any doubts. Thank you!

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by khaled4vokalz
Comment options

You must be logged in to vote
0 replies
Comment options

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

@klaude
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants