atatus_gql_link 1.0.2 copy "atatus_gql_link: ^1.0.2" to clipboard
atatus_gql_link: ^1.0.2 copied to clipboard

A package for tracking GraphQL calls in Atatus compatible with gql_link

Atatus GraphQL Link #

A package for tracking GraphQL calls in Atatus compatible with gql_link

Monitor your GraphQL resources with Real User Monitoring (RUM) and perform the following:

  • Identify GraphQL queries and mutations
  • Identify GraphQL variables used in queries and mutations

Getting started #

To use the atatus_gql_link, add it above your terminating link when using Link.from or Link.concat. For example:

final graphQlUrl = "https://example.com/graphql";

final link = Link.from([
  AtatusGqlLink(AtatusSdk.instance, Uri.parse(graphQlUrl)),
  HttpLink(graphQlUrl),
]);

If you are using atatus_gql_link in conjunction with atatus_tracking_http_client, you will need to have the tracking plugin ignore requests to your GraphQL endpoint, otherwise resources will be double reported, and APM traces may be broken. You can ignore your GraphQL endpoint by using the ignoreUrlPatterns parameter added to atatus_tracking_http_client version 2.1.0.

final atatusConfig = AtatusConfiguration(
    // Your configuration
  )..enableHttpTracking(
      ignoreUrlPatterns: [
        RegExp('example.com/graphql'),
      ],
    );

Contributing #

Pull requests are welcome. First, open an issue to discuss what you would like to change. For more information, read the Contributing guide in the root repository.

License #

Apache License, v2.0

0
likes
0
points
174
downloads

Publisher

unverified uploader

Weekly Downloads

A package for tracking GraphQL calls in Atatus compatible with gql_link

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

atatus_flutter_plugin, flutter, gql, gql_exec, gql_link, uuid

More

Packages that depend on atatus_gql_link