{"name":"apollo-tracing","version":"0.2.0-rc.1","description":"Collect and expose trace data for GraphQL requests","main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"clean":"rm -rf dist","compile":"tsc","prepublish":"npm run compile","test":"jest --verbose","watch":"tsc -w"},"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.0.0-rc.8","graphql-extensions":"0.1.0-beta.0"},"peerDependencies":{"graphql":"0.10.x - 0.13.x"},"devDependencies":{"@types/jest":"^23.1.2","jest":"^23.2.0","jest-matcher-utils":"^23.2.0","ts-jest":"^22.4.6"},"jest":{"testEnvironment":"node","setupFiles":["<rootDir>/node_modules/apollo-server-env/dist/index.js"],"transform":{"^.+\\.(ts|js)$":"ts-jest"},"moduleFileExtensions":["ts","js","json"],"testRegex":"src/__tests__/.*$","globals":{"ts-jest":{"skipBabel":true}}},"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.2.0-rc.1","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"dist":{"integrity":"sha512-PNk8Ju62qwqeLblSvZ9grwf8aaT18ls+yy65avmidYFc0BT37WxtSfVAhFjnGisd4dXrS4s2SMLzzXfF3l610w==","shasum":"a4e75765a598a67091e76b12dc632a83311ce412","tarball":"http://registry-npm.ywwl.com/apollo-tracing/download/apollo-tracing-0.2.0-rc.1.tgz","fileCount":8,"unpackedSize":13286,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbSUjBCRA9TVsSAnZWagAAfjMQAIax1/3mUwsstD9ej5/Q\ncltuJIKxNU4fGvH5V+/YQCTsi+gwN4WoajIrZW5Ak46Vl+LXPf6rLDz2dx6F\neB/HKuyxHBPG+apuY1hK/gqChOLnrAR3fSz2cwdRszFk++USLVf++xdKjexJ\nhjtPpgrPkanPrVBT3IZ75jdmgDtrTQGo0lD5qIIrl6UKrFW2iaSUd7JjSCtZ\nmHp2e3McT8BvYr3NTaFC4u5SWwKrlC6U39m8GnsZ6GbHhpAaEPQ1YmXoloz8\na1VjhMbtPD3BvSijzD9vIZHjQQJ3R99aC1pIjm/Z6/Wyj9Wikbjkun//Yy79\nrhU8gfM1xtN/7qShMvmMr8CsoTwzmGlgZQNE9rwQW2VQ2W3TVvzXJpwKnUso\nFky749Siboy0uNMFRTyE++z3RSz9xJjVyC1+uD13OPURQVMVr4FfB5oDsybE\njdloqyYq8woZLJzDhSLLka+ecxFCjI/xVrFlkOqld1kwZW66doyw8zL3u8CS\nYNOYM5sQEFGKJq6Q8Aie/UiADhbxDvpcxl5qcxXlIRVFNaZQVg1y9o4xYdKP\nWAJTrAz1JxCKDPNbp3SNiwiTZ+5q7C2ZVXEcA019CLXG9ouSdwBPp+5Jnz9e\nQgjr7rLfHHsHb14++1U2iGnWstY4PndnoZSkK/vqilWQkLCafU0e/0+DF+/8\nbANm\r\n=8Ct+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDF/5FDr8fe5r0Ykd3d1i/H3uB7m7+712oh1yYYSOx+2AIhAMxKhtnqjJZEN4pmASbCKDvRq9vveBFvbA0h92hWOHMb"}],"size":4398,"noattachment":false,"key":"/apollo-tracing/-/apollo-tracing-0.2.0-rc.1.tgz"},"maintainers":[{"email":"martijn@martijnwalraven.com","name":"martijnwalraven"},{"email":"npm@meteor.com","name":"mdg"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-tracing_0.2.0-rc.1_1531529409014_0.9459897627900165"},"_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":1531529409155,"_cnpm_publish_time":1531529409155,"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"}}