{"_id":"apollo-link-tracer","_rev":"30-7d774b7e6590be5dddcacf951c74f67f","name":"apollo-link-tracer","dist-tags":{"latest":"1.0.26"},"versions":{"1.0.9":{"name":"apollo-link-tracer","version":"1.0.9","description":"Trace your apollo queries and mutations","license":"Apache-2.0","files":["*.md","src/**.js","src/**.d.ts"],"main":"./src/index.js","typings":"./src/index.d.ts","repository":{"type":"git","url":"https://github.com/convoyinc/apollo-link-tracer.git"},"scripts":{"clean":"./scripts/clean.sh","deps":"./scripts/deps.sh","dev":"./scripts/dev.sh","compile":"./scripts/compile.sh","release":"./scripts/release.sh","start":"./scripts/start.sh","test":"./scripts/test.sh","test:compile":"./scripts/test:compile.sh","test:style":"./scripts/test:style.sh","test:unit":"./scripts/test:unit.sh","precommit":"lint-staged"},"lint-staged":{"*.{js,json,md,ts}":["prettier --single-quote --trailing-comma all --write","git add"]},"dependencies":{"@convoy/tracer":"^0.0.93","apollo-link":"^1.1.0","tslib":"^1.6.0"},"devDependencies":{"@types/chai":"^3.5.2","@types/chai-as-promised":"^0.0.30","@types/graphql":"^0.12.4","@types/lodash":"^4.14.104","@types/node":"^6.0.52","@types/sinon":"^2.3.4","@types/sinon-chai":"^2.7.29","chai":"^3.5.0","chai-as-promised":"^6.0.0","chai-jest-diff":"nevir/chai-jest-diff#built-member-assertions","graphql":"^0.13.1","graphql-tag":"^2.8.0","husky":"^0.14.3","jest":"^21.1.0","jest-junit":"^3.0.0","lint-staged":"^6.0.1","prettier":"^1.10.2","sinon":"^3.2.1","sinon-chai":"^2.13.0","tslint":"^5.8.0","tslint-no-unused-expression-chai":"0.0.3","typescript":"^2.7.2"},"_id":"apollo-link-tracer@1.0.9","dist":{"shasum":"0f3fab5ad556cf4f0a0ee191c851a26d3d17798b","tarball":"https://registry.npmjs.org/apollo-link-tracer/-/apollo-link-tracer-1.0.9.tgz","fileCount":16,"unpackedSize":32632,"integrity":"sha512-y8URb+9uraNKRRfpYchjhcgZRciNvxN1CgCx8mZG4fVWHH8PBFen890NElZpaQZyKhpHMq6+ytXqD7iHxSPNuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC8sRhEWKjnO6yB2X11azkak7XT6Ur/Lwq6KXd8i2K/tAiEAkBS/7PokjEm/XeWDMh3avJwWnLmm/2s29ItR71CuxiY="}]},"maintainers":[{"name":"donvoy","email":"npm@convoy.com"}],"_npmUser":{"name":"donvoy","email":"npm@convoy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-tracer_1.0.9_1519321395926_0.9012678053952536"},"_hasShrinkwrap":false},"1.0.14":{"name":"apollo-link-tracer","version":"1.0.14","description":"Trace your apollo queries and mutations","license":"Apache-2.0","files":["*.md","src/**.js","src/**.d.ts"],"main":"./src/index.js","typings":"./src/index.d.ts","repository":{"type":"git","url":"https://github.com/convoyinc/apollo-link-tracer.git"},"scripts":{"clean":"./scripts/clean.sh","deps":"./scripts/deps.sh","dev":"./scripts/dev.sh","compile":"./scripts/compile.sh","release":"./scripts/release.sh","start":"./scripts/start.sh","test":"./scripts/test.sh","test:compile":"./scripts/test:compile.sh","test:style":"./scripts/test:style.sh","test:unit":"./scripts/test:unit.sh","precommit":"lint-staged"},"lint-staged":{"*.{js,json,md,ts}":["prettier --single-quote --trailing-comma all --write","git add"]},"dependencies":{"@convoy/tracer":"^0.0.93","apollo-link":"^1.1.0","tslib":"^1.6.0"},"devDependencies":{"@types/chai":"^3.5.2","@types/chai-as-promised":"^0.0.30","@types/graphql":"^0.12.4","@types/lodash":"^4.14.104","@types/node":"^6.0.52","@types/sinon":"^2.3.4","@types/sinon-chai":"^2.7.29","chai":"^3.5.0","chai-as-promised":"^6.0.0","chai-jest-diff":"nevir/chai-jest-diff#built-member-assertions","graphql":"^0.13.1","graphql-tag":"^2.8.0","husky":"^0.14.3","jest":"^21.1.0","jest-junit":"^3.0.0","lint-staged":"^6.0.1","prettier":"^1.10.2","sinon":"^3.2.1","sinon-chai":"^2.13.0","tslint":"^5.8.0","tslint-no-unused-expression-chai":"0.0.3","typescript":"^2.7.2"},"_id":"apollo-link-tracer@1.0.14","dist":{"shasum":"7e98eb07089865cc3a260f4803aa7d8581f88bf4","tarball":"https://registry.npmjs.org/apollo-link-tracer/-/apollo-link-tracer-1.0.14.tgz","fileCount":16,"unpackedSize":34013,"integrity":"sha512-tJpkFVPgc4csHSP/PREsG3qrtxG+vVHxWND0V7dxL8E2FBhJQhvHQLBGTro5robJb3wZJn8TgYEL+38xBHHUUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICz7kdocIDho7NTGnm4yigum13sk094sENq4qi0IctS4AiEAh56D3oD6GbXK4B6TNbcTaK6o+1qoio+Ebt+/M5Qg+K0="}]},"maintainers":[{"name":"donvoy","email":"npm@convoy.com"}],"_npmUser":{"name":"donvoy","email":"npm@convoy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-tracer_1.0.14_1520141130830_0.9832952957253129"},"_hasShrinkwrap":false},"1.0.16":{"name":"apollo-link-tracer","version":"1.0.16","description":"Trace your apollo queries and mutations","license":"Apache-2.0","files":["*.md","src/**.js","src/**.d.ts"],"main":"./src/index.js","typings":"./src/index.d.ts","repository":{"type":"git","url":"https://github.com/convoyinc/apollo-link-tracer.git"},"scripts":{"clean":"./scripts/clean.sh","deps":"./scripts/deps.sh","dev":"./scripts/dev.sh","compile":"./scripts/compile.sh","release":"./scripts/release.sh","start":"./scripts/start.sh","test":"./scripts/test.sh","test:compile":"./scripts/test:compile.sh","test:style":"./scripts/test:style.sh","test:unit":"./scripts/test:unit.sh","precommit":"lint-staged"},"lint-staged":{"*.{js,json,md,ts}":["prettier --single-quote --trailing-comma all --write","git add"]},"dependencies":{"@convoy/tracer":"^0.0.93","apollo-link":"^1.1.0","tslib":"^1.6.0"},"devDependencies":{"@types/chai":"^3.5.2","@types/chai-as-promised":"^0.0.30","@types/graphql":"^0.12.4","@types/lodash":"^4.14.104","@types/node":"^6.0.52","@types/sinon":"^2.3.4","@types/sinon-chai":"^2.7.29","chai":"^3.5.0","chai-as-promised":"^6.0.0","chai-jest-diff":"nevir/chai-jest-diff#built-member-assertions","graphql":"^0.13.1","graphql-tag":"^2.8.0","husky":"^0.14.3","jest":"^21.1.0","jest-junit":"^3.0.0","lint-staged":"^6.0.1","prettier":"^1.10.2","sinon":"^3.2.1","sinon-chai":"^2.13.0","tslint":"^5.8.0","tslint-no-unused-expression-chai":"0.0.3","typescript":"^2.7.2"},"_id":"apollo-link-tracer@1.0.16","dist":{"shasum":"441688aa6fe7ca45f810c6f7613f12b97198a6b6","tarball":"https://registry.npmjs.org/apollo-link-tracer/-/apollo-link-tracer-1.0.16.tgz","fileCount":16,"unpackedSize":35340,"integrity":"sha512-nULIv8tjwBajspFZYM17wrHYOevSmaDM6x8eNESpknHT9TztnaBmO+7lYWJVdc02VIlhojAZ6oJk9VYPYh/C0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgHh0MHajCIERabrDSiC06/9yDxiioGQXHLCH9M5593AIgcuzC2hyeFKlla8Xw35OrFF9rv2K6Owr5zT+ESRX7wFM="}]},"maintainers":[{"name":"donvoy","email":"npm@convoy.com"}],"_npmUser":{"name":"donvoy","email":"npm@convoy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-tracer_1.0.16_1520393119110_0.842868983578202"},"_hasShrinkwrap":false},"1.0.17":{"name":"apollo-link-tracer","version":"1.0.17","description":"Trace your apollo queries and mutations","license":"Apache-2.0","files":["*.md","src/**.js","src/**.d.ts"],"main":"./src/index.js","typings":"./src/index.d.ts","repository":{"type":"git","url":"https://github.com/convoyinc/apollo-link-tracer.git"},"scripts":{"clean":"./scripts/clean.sh","deps":"./scripts/deps.sh","dev":"./scripts/dev.sh","compile":"./scripts/compile.sh","release":"./scripts/release.sh","start":"./scripts/start.sh","test":"./scripts/test.sh","test:compile":"./scripts/test:compile.sh","test:style":"./scripts/test:style.sh","test:unit":"./scripts/test:unit.sh","precommit":"lint-staged"},"lint-staged":{"*.{js,json,md,ts}":["prettier --single-quote --trailing-comma all --write","git add"]},"dependencies":{"@convoy/tracer":"^0.0.93","apollo-link":"^1.1.0","tslib":"^1.6.0"},"devDependencies":{"@types/chai":"^3.5.2","@types/chai-as-promised":"^0.0.30","@types/graphql":"^0.12.4","@types/lodash":"^4.14.104","@types/node":"^6.0.52","@types/sinon":"^2.3.4","@types/sinon-chai":"^2.7.29","chai":"^3.5.0","chai-as-promised":"^6.0.0","chai-jest-diff":"nevir/chai-jest-diff#built-member-assertions","graphql":"^0.13.1","graphql-tag":"^2.8.0","husky":"^0.14.3","jest":"^21.1.0","jest-junit":"^3.0.0","lint-staged":"^6.0.1","prettier":"^1.10.2","sinon":"^3.2.1","sinon-chai":"^2.13.0","tslint":"^5.8.0","tslint-no-unused-expression-chai":"0.0.3","typescript":"^2.7.2"},"_id":"apollo-link-tracer@1.0.17","dist":{"shasum":"b02104982faeec128769bc4a2470918a8127abf6","tarball":"https://registry.npmjs.org/apollo-link-tracer/-/apollo-link-tracer-1.0.17.tgz","fileCount":16,"unpackedSize":35457,"integrity":"sha512-sLLLgoPBqUxYfIP821nPZQbV3hBEim5jRsAJt7lV5UH2XpX34N/Gk/vamcSMMECfCChKmz+tefGz9bVW2Om69w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD017z3cxJepGMuymv4GdutmERqoo+OBcFcsh5JOyhHGAIgFKCY4uPvejvpCi50lLSTZApNrSjveMWKKtme1Ll0QJ8="}]},"maintainers":[{"name":"donvoy","email":"npm@convoy.com"}],"_npmUser":{"name":"donvoy","email":"npm@convoy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-tracer_1.0.17_1520442289664_0.5918452144803681"},"_hasShrinkwrap":false},"1.0.20":{"name":"apollo-link-tracer","version":"1.0.20","description":"Trace your apollo queries and mutations","license":"Apache-2.0","files":["*.md","src/**.js","src/**.d.ts"],"main":"./src/index.js","typings":"./src/index.d.ts","repository":{"type":"git","url":"https://github.com/convoyinc/apollo-link-tracer.git"},"scripts":{"clean":"./scripts/clean.sh","deps":"./scripts/deps.sh","dev":"./scripts/dev.sh","compile":"./scripts/compile.sh","release":"./scripts/release.sh","start":"./scripts/start.sh","test":"./scripts/test.sh","test:compile":"./scripts/test:compile.sh","test:style":"./scripts/test:style.sh","test:unit":"./scripts/test:unit.sh","precommit":"lint-staged"},"lint-staged":{"*.{js,json,md,ts}":["prettier --single-quote --trailing-comma all --write","git add"]},"dependencies":{"@convoy/tracer":"^1.0.144","apollo-link":"^1.1.0","tslib":"^1.6.0"},"devDependencies":{"@types/chai":"^3.5.2","@types/chai-as-promised":"^0.0.30","@types/graphql":"^0.12.4","@types/lodash":"^4.14.104","@types/node":"^6.0.52","@types/sinon":"^2.3.4","@types/sinon-chai":"^2.7.29","chai":"^3.5.0","chai-as-promised":"^6.0.0","chai-jest-diff":"nevir/chai-jest-diff#built-member-assertions","graphql":"^0.13.1","graphql-tag":"^2.8.0","husky":"^0.14.3","jest":"^21.1.0","jest-junit":"^3.0.0","lint-staged":"^6.0.1","prettier":"^1.10.2","sinon":"^3.2.1","sinon-chai":"^2.13.0","tslint":"^5.8.0","tslint-no-unused-expression-chai":"0.0.3","typescript":"^2.7.2"},"_id":"apollo-link-tracer@1.0.20","dist":{"shasum":"477d97e0744af221d71ed1b5a0dad66603070ffa","tarball":"https://registry.npmjs.org/apollo-link-tracer/-/apollo-link-tracer-1.0.20.tgz","fileCount":16,"unpackedSize":36639,"integrity":"sha512-pniAcgc0XQ4NM+nD/rBkbHEBTF/1FhKJ/hOxXsIiWOwDkqASQuPJ2r6Oexz0mRbAfEwBuYyY0sN/s6UJY7w93w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNVw1qG6AKiiYnw133hlF1cMRwGT84UDvNPC4ETXSR4QIhALHkQ9OtZZnMiYkAlqXFXtTafu2TgBI+kANRyDGQqemp"}]},"maintainers":[{"name":"donvoy","email":"npm@convoy.com"}],"_npmUser":{"name":"donvoy","email":"npm@convoy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-tracer_1.0.20_1522955661271_0.6906221697250379"},"_hasShrinkwrap":false},"1.0.23":{"name":"apollo-link-tracer","version":"1.0.23","description":"Trace your apollo queries and mutations","license":"Apache-2.0","files":["*.md","src/**.js","src/**.d.ts"],"main":"./src/index.js","typings":"./src/index.d.ts","repository":{"type":"git","url":"https://github.com/convoyinc/apollo-link-tracer.git"},"scripts":{"clean":"./scripts/clean.sh","deps":"./scripts/deps.sh","dev":"./scripts/dev.sh","compile":"./scripts/compile.sh","release":"./scripts/release.sh","start":"./scripts/start.sh","test":"./scripts/test.sh","test:compile":"./scripts/test:compile.sh","test:style":"./scripts/test:style.sh","test:unit":"./scripts/test:unit.sh","precommit":"lint-staged"},"lint-staged":{"*.{js,json,md,ts}":["prettier --single-quote --trailing-comma all --write","git add"]},"dependencies":{"@convoy/tracer":"^1.0.144","apollo-link":"^1.1.0","tslib":"^1.6.0"},"devDependencies":{"@types/chai":"^3.5.2","@types/chai-as-promised":"^0.0.30","@types/graphql":"^0.12.4","@types/lodash":"^4.14.104","@types/node":"^6.0.52","@types/sinon":"^2.3.4","@types/sinon-chai":"^2.7.29","chai":"^3.5.0","chai-as-promised":"^6.0.0","chai-jest-diff":"nevir/chai-jest-diff#built-member-assertions","graphql":"^0.13.1","graphql-tag":"^2.8.0","husky":"^0.14.3","jest":"^21.1.0","jest-junit":"^3.0.0","lint-staged":"^6.0.1","prettier":"^1.10.2","sinon":"^3.2.1","sinon-chai":"^2.13.0","tslint":"^5.8.0","tslint-no-unused-expression-chai":"0.0.3","typescript":"^2.7.2"},"_id":"apollo-link-tracer@1.0.23","dist":{"shasum":"745373fab6bedc43d0b3fec44e2ab73d85d876ba","tarball":"https://registry.npmjs.org/apollo-link-tracer/-/apollo-link-tracer-1.0.23.tgz","fileCount":16,"unpackedSize":39833,"integrity":"sha512-MdckCkaUBIFp2Wjz71YCKEWhfGn7Gg7zmW/7XOTgXXDKAHwbuwuNRvBLFdSE8BI/j5oK/crTFEhe/XENqYFnuQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrSaQjU5UZ9i6aw/veLejLuBxcBQ/ZPfF7ZlYL8tYHJAIhANeacXcKDu2NjIxFfCUdTYAE3/Up2ICeVpZIHlAXTJMv"}]},"maintainers":[{"name":"donvoy","email":"npm@convoy.com"}],"_npmUser":{"name":"donvoy","email":"npm@convoy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-tracer_1.0.23_1530912868474_0.5975894139905735"},"_hasShrinkwrap":false},"1.0.26":{"name":"apollo-link-tracer","version":"1.0.26","description":"Trace your apollo queries and mutations","license":"Apache-2.0","main":"./src/index.js","typings":"./src/index.d.ts","repository":{"type":"git","url":"https://github.com/convoyinc/apollo-link-tracer.git"},"scripts":{"clean":"./scripts/clean.sh","deps":"./scripts/deps.sh","dev":"./scripts/dev.sh","compile":"./scripts/compile.sh","release":"./scripts/release.sh","start":"./scripts/start.sh","test":"./scripts/test.sh","test:compile":"./scripts/test:compile.sh","test:style":"./scripts/test:style.sh","test:unit":"./scripts/test:unit.sh","precommit":"lint-staged"},"lint-staged":{"*.{js,json,md,ts}":["prettier --single-quote --trailing-comma all --write","git add"]},"dependencies":{"@convoy/tracer":"^1.0.144","apollo-link":"^1.1.0","tslib":"^1.6.0"},"devDependencies":{"@types/chai":"^3.5.2","@types/chai-as-promised":"^0.0.30","@types/graphql":"^0.12.4","@types/lodash":"^4.14.104","@types/node":"^6.0.52","@types/sinon":"^2.3.4","@types/sinon-chai":"^2.7.29","chai":"^3.5.0","chai-as-promised":"^6.0.0","chai-jest-diff":"nevir/chai-jest-diff#built-member-assertions","graphql":"^0.13.1","graphql-tag":"^2.8.0","husky":"^0.14.3","jest":"^21.1.0","jest-junit":"^3.0.0","lint-staged":"^6.0.1","prettier":"^1.10.2","sinon":"^3.2.1","sinon-chai":"^2.13.0","tslint":"^5.8.0","tslint-no-unused-expression-chai":"0.0.3","typescript":"^2.7.2"},"_id":"apollo-link-tracer@1.0.26","dist":{"shasum":"e7aeb61683cc31db8f6c30f01127c45c365694a3","tarball":"https://registry.npmjs.org/apollo-link-tracer/-/apollo-link-tracer-1.0.26.tgz","integrity":"sha512-3E19bN98SBohkreDLYmQstlGWaTVNf/NJvJD6PiLKLAIA4Ueg+sK0hE7YHjIjdwJeXup0ESlGXJuBOailVCWPQ==","fileCount":16,"unpackedSize":39833,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2d9aCRA9TVsSAnZWagAA1MoQAKKKVTOdsvwyHq14QXDQ\nrvUKX+RmfcLGjMMQ50hDlYUO/EDv1UkfgXRlgkYTIuNjzcjq+Mfh0l/3jUvj\nF8OyGq0qJRGDgxX6BSaWeikb6gJGcWCSvZD3/XgEQDCJAI5AujA5MYZy55IY\nkxEVvIUXFi+oupot561E5VeRwruu+ijyFJkUrFVbSvaBNuNUDjijMrEJNOE/\n7WLYYpW0Gtwy8nRcv2fR6lL1nXe+IWefR+Vi+U9avacwkSFg5Cc8tp/QFb8H\nVMl0Zpn6ZA9hQGcpt9YmvgLgJe1V/VeYumphgeV7U6hmoWyc4QPXQhGnFrR2\n7ej7dzr/7+kOFEa6geNLa2tU8+VGGJdyKSvqjpl0gulF0yeELdbeA7H24mK5\nNyLOaViWCOXBpUEYBM9NIbhp0WLcNHTo6h2ZxUjCWArd3fwKr3N278mpuXED\nbsZuRYLf5f56aaeY3umdrJLNIucrr0LeNgERlhb8Br+NMWaHzqGpBkOJIKry\nWTcS9tXIM6UCYRGu9hmcOFjPRhC/n8VBxr60LTwx+RvzsBlbgAmZRqQEZQgd\n/qeLonXu5AhmdtlkmrGG6POxGMi9EHgz8Eq5Nr0ssOsNixJggowOw91kM5b2\nx08VQrVL7NIkSPyLeUbKATW4M9qRjEvkovvu2eCshufbsSprniZlZ8vgn60w\nAEpM\r\n=OJ5t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoGx+HD63BrsAF8AqL3Q7CV/CIVvh7+BsvEDtfwpJ85QIgcFOBhfouSpzxQylo4tc+8yYTCjbVej8zfS2x+EYWKb4="}]},"maintainers":[{"name":"donvoy","email":"npm@convoy.com"}],"_npmUser":{"name":"donvoy","email":"npm@convoy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apollo-link-tracer_1.0.26_1541005145963_0.7257855421841513"},"_hasShrinkwrap":false}},"time":{"created":"2018-02-22T17:43:15.925Z","1.0.9":"2018-02-22T17:43:15.994Z","modified":"2022-06-13T03:14:56.319Z","1.0.14":"2018-03-04T05:25:30.879Z","1.0.16":"2018-03-07T03:25:19.182Z","1.0.17":"2018-03-07T17:04:50.305Z","1.0.20":"2018-04-05T19:14:21.373Z","1.0.23":"2018-07-06T21:34:28.670Z","1.0.26":"2018-10-31T16:59:06.107Z"},"maintainers":[{"email":"platform-excellence-services@convoy.com","name":"convoy_artifactory"},{"email":"convoy_npmjs_ci@convoy.com","name":"convoy_ci"},{"email":"convoy_npmjs_admin@convoy.com","name":"convoy_admin"},{"email":"npm@convoy.com","name":"donvoy"}],"description":"Trace your apollo queries and mutations","repository":{"type":"git","url":"https://github.com/convoyinc/apollo-link-tracer.git"},"license":"Apache-2.0","readme":"# Apollo Link Tracer\n\nTrace your apollo queries and mutations with [apollo-link](https://github.com/apollographql/apollo-link).\n\nRelies on [@convoy/tracer](https://github.com/convoyinc/tracer).\n\n## Getting started\n\n```\nnpm install apollo-link-tracer --save\n```\n\n```js\nimport ApolloLinkTracer from 'apollo-link-tracer';\nimport { Reporter } from '@convoy/tracer';\n\nconst apiReporter = new Reporter({\n  flushHandler: async (timings, traces) => {\n    // Report traces to API\n  },\n});\n\nnew ApolloClient({\n  link: ApolloLink.from([\n    new ApolloLinkTracer({\n      service: 'my-service',\n      tracerConfig: {\n        reporter: apiReporter,\n        fullTraceSampleRate: 1,\n      },\n      name: 'apollo-link',\n    }),\n\n    new ApolloLink((operation, forward) => {\n      const { tracer } = operation.getContext().tracer;\n      const requestId = tracer.getTraceId();\n\n      operation.setContext({\n        headers: {\n          'x-req-id': requestId,\n        },\n      });\n\n      return forward(operation);\n    }),\n\n    new RetryLink(retryOptions),\n\n    new ApolloLinkTracer({\n      service: 'my-service',\n      tracerConfig: {\n        reporter: apiReporter,\n        fullTraceSampleRate: 1,\n      },\n      name: 'apollo-link-retry',\n    }),\n\n    new HttpLink({ uri, fetch }),\n  ]),\n});\n```\n\nApplying apollo-link-tracer both before and after the retry link lets you separately measure each retry, but provides a single trace across all of them.\n\nA Tracer object is added to the operation context, which can then be used to pass a trace id to the HTTP headers to support cross service tracing.\n\n### Advanced options\n\nOn a per GQL request basis you can alter how the trace is captured.\n\n```js\napi.mutate({\n  mutation,\n  variables,\n  context: {\n    tracerConfig: {\n      fullTraceSampleRate: 1 / 20,\n    },\n    traceService: 'my-service',\n    traceName: 'apollo-link-mutate',\n    traceResource: 'getSomething',\n    avoidTrace: false, // If true, skips tracing\n  },\n});\n```\n\n#### Filtering Sensitive Variables\n\nTo avoid reporting the contents of sensitive variables, you can specify variable filters.\n\n```js\nnew ApolloLinkTracer({\n  service: 'my-service',\n  tracerConfig: {\n    reporter: apiReporter,\n    fullTraceSampleRate: 1,\n  },\n  name: 'apollo-link-retry',\n  variableFilters: ['password', /secret.*sauce/],\n}),\n```\n\nVariable filters can be either string matches or regular expressions. Any variables whose names match these filters will have their values filtered out, e.g.\n\n```js\n{ username: 'bob', password: 'hunter2', secret_hot_sauce: 'sri racha'}\n```\n\nbecomes\n\n```js\n{ username: 'bob', password: '<filtered>', secret_hot_sauce: '<filtered>'}\n```\n","readmeFilename":"README.md"}