Skip to content
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 #1521

Merged

Conversation

dgieselaar
Copy link
Member

Reviving #1187:

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 the page-load transaction. Before this PR page-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.

Copy link
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


/**
* Set the parent id of the transaction to the page load parent ID.
* This means that the backend transcaction will be the parent of
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* This means that the backend transcaction will be the parent of
* This means that the backend transaction will be the parent of

Copy link
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vigneshshanmugam vigneshshanmugam merged commit 25143ab into elastic:main Jan 3, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants