This package has been deprecated

Author message:

The `apollo-tracing` package is no longer part of Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#tracing for details

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

0.16.0 • Public • Published

Apollo Tracing (for Node.js)

This package is used to collect and expose trace data in the Apollo Tracing format.

It relies on instrumenting a GraphQL schema to collect resolver timings, and exposes trace data for an individual request under extensions as part of the GraphQL response.

This data can be consumed by Apollo Studio (previously, Apollo Engine and Apollo Graph Manager) or any other tool to provide visualization and history of field-by-field execution performance.

Usage

Apollo Server

Apollo Server includes built-in support for tracing from version 1.1.0 onwards.

The only code change required is to add tracing: true to the options passed to the ApolloServer constructor options for your integration of choice. For example, for apollo-server-express:

const { ApolloServer } = require('apollo-server-express');

const server = new ApolloServer({
  schema,
  tracing: true,
});

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i apollo-tracing

    Weekly Downloads

    256,681

    Version

    0.16.0

    License

    MIT

    Unpacked Size

    14.4 kB

    Total Files

    8

    Last publish

    Collaborators

    • apollo-bot