Skip to content

New Relic is not being given useful transaction names for graphql requests #30915

Closed
@convenient

Description

@convenient

 
{quote}

Description (*)

Every graphql is being given the same transaction name in new relic.

This means when using a PWA site that most of the requests do not get split out in any useful way in New Relic. They all get lumped into /FrontController/Magento\GraphQl\Controller\GraphQl\Interceptor.

This makes it really hard to debug specific slow or buggy requests. I would classify this as a bug because it makes New Relic pretty useless with a Magento PWA stack and makes it much harder to support.

Expected behavior (*)

We have some better naming of transactions within the application. Maybe something like

- /GraphQL-productDetail
- /GraphQL-getCartDetails

There is an open discussion here https://discuss.newrelic.com/t/feature-idea-magento-2-graphql-api-transaction-naming/98824 but both the options discussed there make it seem like this fix needs to come from within the Magento application.

Benefits

Having the transactions properly broken down within New Relic is vital for supporting the application at an enterprise level. It's a big step back to not have this functionality.

Additional information

N/A
{quote}

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions