{"name":"apollo-tracing","version":"0.4.0-alpha.0","description":"Collect and expose trace data for GraphQL requests","main":"./dist/index.js","types":"./dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/apollographql/apollo-tracing-js.git"},"author":{"name":"Martijn Walraven","email":"martijn@martijnwalraven.com"},"engines":{"node":">=4.0"},"dependencies":{"apollo-server-env":"2.2.0","graphql-extensions":"0.4.0-alpha.0"},"peerDependencies":{"graphql":"0.10.x - 14.0.x"},"gitHead":"ef31818629b673e3e68563f773a1113e9e9ca750","_resolved":"","_integrity":"","_from":"file:apollo-tracing-0.4.0-alpha.0.tgz","readme":"# Apollo Tracing (for Node.js)\n\nThis package is used to collect and expose trace data in the [Apollo Tracing](https://github.com/apollographql/apollo-tracing) format.\n\nIt 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.\n\nThis data can be consumed by [Apollo Engine](https://www.apollographql.com/engine/) or any other tool to provide visualization and history of field-by-field execution performance.\n\n## Usage\n\n### Apollo Server\n\nApollo Server includes built-in support for tracing from version 1.1.0 onwards.\n\nThe only code change required is to add `tracing: true` to the options passed to the Apollo Server middleware function for your framework of choice. For example, for Express:\n\n```javascript\napp.use('/graphql', bodyParser.json(), graphqlExpress({\n  schema,\n  context: {},\n  tracing: true,\n}));\n```\n\n> If you are using `express-graphql`, we recommend you switch to Apollo Server. Both `express-graphql` and Apollo Server are based on the [`graphql-js`](https://github.com/graphql/graphql-js) reference implementation, and switching should only require changing a few lines of code.\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/apollographql/apollo-tracing-js/issues"},"homepage":"https://github.com/apollographql/apollo-tracing-js#readme","_id":"apollo-tracing@0.4.0-alpha.0","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"apollo-bot","email":"npm@apollographql.com"},"dist":{"integrity":"sha512-+JK/Ywegv4FAOXaZj1ISeSGznHJ0Sz6Q86eLaN2MoGysoVWcVInqw2xyS2JdgPqTofnG03tkZ68LU6Gv8oscHw==","shasum":"97b282ddc987a776eaad64206275be3d05652174","tarball":"http://registry-npm.ywwl.com/apollo-tracing/download/apollo-tracing-0.4.0-alpha.0.tgz","fileCount":8,"unpackedSize":13633,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBtG3CRA9TVsSAnZWagAAH6kP/iZAtbjYDsjyWAv0p953\nrPXlyMGFO9KvqxtNEXruPSaTPqiuve5hH+EZ0iALPHDObBaBLTOOC5EsgSTV\nesi+l7Xa5+DgO4J/op3O+4i0Z2oi/wL7+ZoymeUAIo5rq37ixfqlm6Gziloi\nv2Txi/m6q+hryuywUv89m+A5H2/QKnAlx82qAOFlRZVAQxX16H93SLKZ/l8r\njp/XOLNUwMRb5vuFGb79wwma3+6Qxsbpsitzwju++e/5TxdFHT5FgZ3bxmHv\nfpO+iXECDJqHJUnk6cPXrjVADhSg5ms+Hrf4gWkEt6zBn3xoGxXIFKkFtrHs\nAH4Ib0c41tExycyj3VRD+rzY7n5u+XOTPCES1oEyrDOx+OvAPUZcwOAufrDz\nJisyML8fUQnJmNYm9eimndS4ZuG4PCy9M3JQDgsG9LQ4ZzcleR6p6/NrubFf\nfeA/HxdF9EcroV8ZaUGdnCEhPIgxdO6OUoUW6P6peJ/Al44Q4gIY0KNa8DJU\nNZdJExHFbXYwidhyF7/2PYRJTeuGCFPHYpZREYQzYT+slYINq5wuiMglt3UF\nRqa+R5fSEkAHtg/miWndHQOHuTNq7BqspdfVpt3jr9Yd42GEFVwk4KlxM/M3\npNXuxJu8pcad/F0auJksXlnH/sizp4w6S7QqodhfXwQZAZyiMH7CxbbojXcF\nSyPB\r\n=BBTu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjjKmkc7Vs04Kowy2RELk2IwYeSsxO458ZaSLjv1k8KgIhANT/ZnQC9l8tzqTkzcz7/F52u29l5obir9A47M6rgK9O"}],"size":4753,"noattachment":false,"key":"/apollo-tracing/-/apollo-tracing-0.4.0-alpha.0.tgz"},"maintainers":[{"email":"npm@apollographql.com","name":"apollo-bot"},{"email":"martijn@martijnwalraven.com","name":"martijnwalraven"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-tracing_0.4.0-alpha.0_1543950774240_0.3434358406741771"},"_hasShrinkwrap":false,"deprecated":"The `apollo-tracing` package is no longer part of Apollo Server 3. See https://www.apollographql.com/docs/apollo-server/migration/#tracing for details","publish_time":1543950774315,"_cnpm_publish_time":1543950774315,"dist-tags":{"alpha":"0.15.0-alpha.0","latest":"0.16.0","next":"0.12.0-alpha.0","next-v3":"0.300.0-alpha.3","rc":"0.11.3-rc.0","unified":"0.13.1-unified2.1","v2":"0.16.0"}}