Skip to content

[useApolloUsageReport] Number of requests is missing #3580

Open
@kroupacz

Description

@kroupacz

Describe the bug

Hello,
we recently migrated from Apollo Server to GraphQL Yoga and started using the "useApolloUsageReport" plugin instead of the original "ApolloServerPluginUsageReporting" plugin.
After a few days of use, we noticed that the metrics in Apollo Studio are missing important information about the number of requests that were previously there.
The problem only occurs in the section for "individual object fields" - Insights => Object Fields (filter). Details can be seen on the attached screenshots bellow. The number of requests for "GraphQL operations" - Insights => Operations (filter) is displayed correctly. NOTE that the number of requests is missing (is always zero), but the number of executions is available.

BEFORE - Apollo Server + ApolloServerPluginUsageReporting plugin
screenshot_before

AFTER - GraphQL Yoga + useApolloUsageReport plugin
screenshot_after

Maybe @EmrysMyrddin could help because he knows how it all works? 😉

Your Example Website or App

https://studio.apollographql.com/

Steps to Reproduce the Bug or Issue

Just use the "useApolloUsageReport" plugin. 🙂

Expected behavior

"useApolloUsageReport" plugin should report also number of requests for "individual object fields".

Platform

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions