apm-agent-nodejs icon indicating copy to clipboard operation
apm-agent-nodejs copied to clipboard

Support batch requests in graphql module

Open gergof opened this issue 5 years ago • 0 comments

Is your feature request related to a problem? Please describe.

When using apollo-link-batch-http more than 1 query is sent to the server in a single request. This causes a single transaction to contain many spans with different graphQL spans. It would be nice to have an option to at least set the transaction name to something like batch request, or even better, allow to split it to separate transactions.

Currently it seems like that the name of the last query is set for the transaction name.

Describe the solution you'd like

I would like to have an option to split each query to a separate transaction or to set the name of the transaction to Batch request at least.

Describe alternatives you've considered

I managed to set a separate name for the batch requests through some custom handlers, but this should be the default in my opinion.

Additional context

image

gergof avatar Mar 06 '20 13:03 gergof