Skip to content

Trace unique sites under same transaction #6213

Answered by Speedy1991
Speedy1991 asked this question in Q&A
Discussion options

You must be logged in to vote

Ah nvm, just found it myself.
You can specify the transaction name in the beforeNavigate hook, like this in the BrowserTracing constructor

new Integrations.BrowserTracing({
            startTransactionOnLocationChange: false,
            beforeNavigate: (context) => {
              context.name = '/parent/child/all/'; // we do not want to trace each page separately
              return context;
            },
          }),

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Speedy1991
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant