-
Notifications
You must be signed in to change notification settings - Fork 527
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
Add sourcemap periodic refresh tracing #11116
Conversation
4f68696
to
e17364e
Compare
This pull request does not have a backport label. Could you fix it @dmathieu? 🙏
NOTE: |
📚 Go benchmark reportDiff with the
report generated with https://pkg.go.dev/golang.org/x/perf/cmd/benchstat |
System tests failed once du to a flaky test. They passed on a second run, but somehow, the |
changelogs/head.asciidoc
Outdated
@@ -17,3 +17,4 @@ https://github.com/elastic/apm-server/compare/8.9\...main[View commits] | |||
|
|||
[float] | |||
==== Added | |||
- Add a transaction to the source map periodic refresh action. {pull}11116[11116] |
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.
Would be great to mention this is for instrumentation only.
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.
How about now?
Motivation/summary
Sourcemap periodic refreshes are making external calls to ES. Those calls produce spans, but they can't generate any data, as there is no parent transaction.
This creates a transaction for each sync run, so we can observe them.
Checklist
apmpackage
have been made)For functional changes, consider:
How to test these changes
Outside of unit tests, I have been testing these changes by running apm-server with tilt and rum/self instrumentation enabled.
I'm not 100% sure about the
initialSearch
andscrollSearch
spans, since they do nothing but wrap the ES call. They also help in figuring out which method makes those calls though.Related issues
See #1014.