By default, GraphQL Business Transactions is disabled. To configure the Node.js Agent to enable GraphQL Business Transactions, set enableGraphQL true profile()
Once GraphQL Business Transactions is enabled, you can configure a GraphQL custom match rule for a Node.js application:
- In the Controller, select .
- Click .
- Select Node.js in the Agent Type dropdown. Click Next.
- Enter a name for the match rule and ensure that the enabled checkbox is checked.
- Click Select Scope and select the desired scope for the rule. Click OK.
- Next, navigate to and click Add.
- Select URI as the criteria and choose the desired operation from the dropdown list. Then, enter the desired value for the GraphQL incantation (for example, the URL prefix).
- Navigate to Split Transactions Using Request Data and click the Split Transactions Using Request Data checkbox.
- Select the graphql operation name from the dropdown and select Save.
Upon configuring the rule and sending a GraphQL queries in your application, the Business Transactions page displays separate transactions.