-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move span pointer to inferred (root) span #552
Move span pointer to inferred (root) span #552
Conversation
Waiting on #551 |
@@ -1368,8 +1368,9 @@ def create_function_execution_span( | |||
if parent_span: | |||
span.parent_id = parent_span.span_id | |||
if span_pointers: | |||
root_span = parent_span if parent_span else span |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nano-nit: is root_span
the right name? should this be target_span
or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be either; I think root_span
makes sense because in the case of S3, the parent_span
is the root span if it exists; if it doesn't exist, then the span
is the root span of the trace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks right!
What does this PR do?
Put span pointers on inferred (root) span instead of the lambda (child) span, as discussed in Slack.
Note that moving the location of the span pointer has no actual effect on the functionality and requires no changes on the UI side. As long as a span is found with a matching hash, span pointers work. Since the spans are on the same trace, this has no noticeable change for our users.
Motivation
Discussed in Slack; this change just aligns span pointers with bottlecap (universally instrumented) runtimes.
Testing Guidelines
Manual testing. See this span and you will see that the span links are on the inferred span now.
Types of Changes
Check all that apply