-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[APM] Reparenting spans to support inferred spans #63695
Conversation
Is the before screenshot taken from an actual transaction? Or is that a modified one to showcase the representing? I'm asking because I couldn't explain how that situation could have happened, maybe there's a lost activation event for the Here's another example for what's supposed to happen: The I have set
TL;DR: No, as normally the Java agent would take care of that. I'm confused as to why the In an ideal world, the two DB spans are supposed to be re-parented to the |
I got it running I also did this because, in my opinion, the UI doesn't have to know about Inferred Spans, it knows how to reparent items based on the
I'm going to set this variable as |
Agreed. For an initial test, this is fine. But a soon as the APM Server supports representing, we should not forget to do another end-to-end test. |
Agreed. Can you link the APM agent issue here, please? |
It's linked from the meta issue elastic/apm#247 |
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.
LGTM!
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* reparening spans * adding unit test * adding unit test
closes #63575
closes #62952
Reparents spans based on the
![Screenshot 2020-04-16 at 14 43 09](https://user-images.githubusercontent.com/55978943/79457538-ab3cf980-7ff0-11ea-9de7-275ba8c6cbf8.png)
child_ids
property.Before:
Loader#executeQueryStatement
is anInferred Span
which should be child ofOpenTracing product span
After:
![Screenshot 2020-04-16 at 14 37 50](https://user-images.githubusercontent.com/55978943/79457630-d293c680-7ff0-11ea-899a-a9a751f281bc.png)
Adding the
child_ids
property onOpenTracing product span
and reference itLoader#executeQueryStatement
, makes the Waterfall to reparent theLoader#executeQueryStatement
.A question that maybe @graphaelli or @felixbarny might know:
e.g.:
Should we change it to?