Newton's Poleless Magnet

    @envelop/apollo-tracing
    TypeScript icon, indicating that this package has built-in type declarations

    4.0.4 • Public • Published

    @envelop/apollo-tracing

    This plugin tracks execution and resolvers and reports it using apollo-tracing format (based on GraphQL extensions).

    You can see the results of the collected metrics if you are using GraphQL Playground.

    This is how it looks like (note the TRACING section):

    Example

    Getting Started

    yarn add @envelop/apollo-tracing
    

    Usage Example

    import { parse, validate, specifiedRules, execute, subscribe } from 'graphql'
    import { envelop, useEngine } from '@envelop/core'
    import { useApolloTracing } from '@envelop/apollo-tracing'
    
    const getEnveloped = envelop({
      plugins: [
        useEngine({ parse, validate, specifiedRules, execute, subscribe }),
        // ... other plugins ...
        useApolloTracing()
      ]
    })

    Notes

    It's recommended to keep this plugin active only while developing only, since it's mainly used for performance tracking while developing.

    Keywords

    none

    Install

    npm i @envelop/apollo-tracing

    DownloadsWeekly Downloads

    793

    Version

    4.0.4

    License

    MIT

    Unpacked Size

    9.58 kB

    Total Files

    7

    Last publish

    Collaborators

    • dotansimha