Socket
Book a DemoInstallSign in
Socket

@envelop/apollo-tracing

Package Overview
Dependencies
Maintainers
2
Versions
1506
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/apollo-tracing

This plugin tracks execution and resolvers and reports it using [`apollo-tracing`](https://github.com/apollographql/apollo-server/tree/main/packages/apollo-tracing) format (based on GraphQL `extensions`).

latest
Source
npmnpm
Version
9.0.0
Version published
Weekly downloads
3.5K
109.71%
Maintainers
2
Weekly downloads
 
Created
Source

@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.

FAQs

Package last updated on 06 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts