Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

MetricsInstrumentation: support differentiating queries with errors #317

@xialin

Description

@xialin

Currently graphql.timer.query.* collect all queries regardless of response details. In particular, if a GraphQL query returns some errors, I cannot identify them from the metrics (metric name or tags).

Is it possible to add an error tag if executionResult.getErrors() is not empty? That way, I'll be able to check the error rate of my GraphQL queries.

Otherwise, I'd appreciate if anyone can share an alternative to capture error metrics.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions