apm-agent-rum-js icon indicating copy to clipboard operation
apm-agent-rum-js copied to clipboard

Extracting graphql operationName from POST requests

Open sai56 opened this issue 3 years ago • 3 comments

Is it possible to display the operationName of graphql requests instead of "/graphql" path on the dashboard ?

It would be helpful if someone could guide me how to achieve this using the JS RUM agent.

Similar issue: https://github.com/elastic/apm-agent-nodejs/issues/2424

sai56 avatar Feb 07 '22 17:02 sai56

Hi @sai56

Thanks for reaching out!

Currently the JS RUM agent does not have any specific logic that intercepts graphql requests and then based in their payload to modify the transaction with a more identifiable name

What GraphQL client are you using?

We will discuss this in our team refinement

devcorpio avatar Feb 08 '22 15:02 devcorpio

Hi @devcorpio

Thanks for getting back on this question.

We use the graphql-request as our client.

sai56 avatar Feb 09 '22 07:02 sai56

I have the same problem but we use apollo as the JS graphql client.

mo avatar May 16 '22 19:05 mo