{"name":"apollo-tracing","version":"0.2.0-rc.0","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.7","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.0","_npmVersion":"5.7.1","_nodeVersion":"8.9.4","_npmUser":{"name":"mdg","email":"npm@meteor.com"},"dist":{"integrity":"sha512-PtVqukUmh1d1UD2MLdjmh3dcALEF9EPlUZguCsM6vyk/TjY4o8VlgQFigCdDw75lHcPRQes5hGsPgj9dUU00rA==","shasum":"fab22822451b3bd4fc3dec33d599071fd9a1de23","tarball":"http://registry-npm.ywwl.com/apollo-tracing/download/apollo-tracing-0.2.0-rc.0.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\nwsFcBAEBCAAQBQJbRBr3CRA9TVsSAnZWagAAvM4QAI5RuDa7hnq/A02bApEL\nVYmTILUPXsB+T77fnZUI1yxxzgCshsMiA9Z++lJ3yYIHDVHeSqMAW4cPlIcq\n1zT9wTZmZN8VfSfQykDbKVqhFJLPGDp3B5wqya1biH0oisc+HvQ2C1zOzech\nJdMJs1PUSPIkbnT3fEPDyhWsRPIcSsu6MGptc4j8PSYCKilg2z4tqbEg6qdp\nlFcGiJIRFsmJbFDsXbT2rvC0qfwCN3UMo9732gE3EnNm9fCGBIGGKsnZqJg4\nIkxEfV9MHssp3oIbTjw/z4NI1oiutJZqO9LSbqGISpRpeb9A27cPSltBC9Yt\n+ULSKRsI0UEZ1TbBqhhnAP49KsAAxn6iFOrWED3n2cTCnPPKF2ldrviVeOcg\naaLDGWr3qgkHjLPD88fN+8TIGGbwJsIrJboXj4SyhYtAjfOgnupV27TKqAbK\nZCECJ4M/o56muAzDryG1T8zuqzZHX/8SxcFIgGZnLshvSwn/iFNmGExa/Kmv\nIUF4uSWxAtrj6Qko9ozkYShjL4p2pYEZWr3uqT96smlbmrfl1GnhbuQ9a63L\nDfdoiY7QRnfBu5S05LZrbWD0fk80npNRQ18cWAmh8CnBGXunk+EFmg9N4m6t\ntjEcsYcZ+NBD2sTkN2I5BCg/kGx8ROXqFjxbkF6EXdrzFbfa0XD8Ef8sB7TI\nd4tK\r\n=hKgg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvfVZa4Mo+VO1ovD1tPDi0N9d+DZ/F22sZ8OI+62xkfgIgZjMI9lERnjq93A+TAVsph+rT5e3Fa3wIPSb6X1ruTnY="}],"size":4399,"noattachment":false,"key":"/apollo-tracing/-/apollo-tracing-0.2.0-rc.0.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.0_1531190007140_0.26346522436282815"},"_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":1531190007176,"_cnpm_publish_time":1531190007176,"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"}}