-
Notifications
You must be signed in to change notification settings - Fork 136
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
feat: add pageLoadParentId configuration #1187
Conversation
/test |
📦 Bundlesize report
|
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.
Thanks @devcorpio Changes LGTM, But we need to do few more things
- Add the limit check to truncation logic that should truncate if the field is past 1024 bytes-
parent_id: true, - Document the pageloadParentId in the config option along with other trace options- https://github.com/elastic/apm-agent-rum-js/blob/main/docs/configuration.asciidoc#pageloadtraceid
I would also like to test with the Synthetics APM PR before we close this down. Thanks!
The truncation logic it's already working. The function Something that caught my attention is that if I replace One way to avoid that is setting |
No, we dont need to set N/A and that flag exists only when we cannot send a empty string to the APM server which are marked as |
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
I will try to test with Synthetics package before we do a release of this one.
Context
One of the requirements for Crosslinking Synthetics with APM issue was to allow the RUM agent the creation of the
page-load
transaction as child of the one created in Synthetics.The main goal of that is to provide visibility into how the synthetic journeys are executed and what actions are happening inside every step. This image extracted from the issue linked above it's a great example.
Summary
We expose a new agent configuration option named
pageLoadParentId
whose value will be the id of the transaction that we want to establish as parent of thepage-load
transaction. Before this PRpage-load
transaction was always treated as the root transaction, now it will be possible to set a parent if needed thanks to this new config.