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

6.1.0 • 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 { execute, parse, specifiedRules, subscribe, validate } from 'graphql'
import { useApolloTracing } from '@envelop/apollo-tracing'
import { envelop, useEngine } from '@envelop/core'

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @envelop/apollo-tracing

Weekly Downloads

169

Version

6.1.0

License

MIT

Unpacked Size

10.7 kB

Total Files

8

Last publish

Collaborators

  • dotansimha