{"_id":"@creditkarma/zipkin-tracing-hapi","_rev":"47-8f3c378734b78cbe329e42e09a68457f","name":"@creditkarma/zipkin-tracing-hapi","dist-tags":{"next":"1.1.0-alpha.1","latest":"1.0.4"},"versions":{"0.11.0-alpha.0":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.11.0-alpha.0","description":"Express server middleware for the Apache Thrift protocol","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.14.3"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.10.x","@creditkarma/thrift-server-hapi":"0.10.x","@creditkarma/thrift-zipkin-core":"0.10.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.11.0-alpha.0","@creditkarma/thrift-server-hapi":"^0.11.0-alpha.0","@creditkarma/thrift-zipkin-core":"^0.11.0-alpha.0","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.1.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.11.0-alpha.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-l2Z/ww6JW2xeldPjwBfqKAFm81y+NCIL7aStS3bFPXqft68/mTxUBtQpVEdsk8wYd+sTSVuJXseu7LCl7KN8rg==","shasum":"3a8149dcc71f7ca327aba2c376e970066857bb63","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.11.0-alpha.0.tgz","fileCount":9,"unpackedSize":24374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcAKceCRA9TVsSAnZWagAABbkP/0sUwpjgqU+0RCZy924P\n2tBaM0LBR/G/E8juBIfSurrudT1BU2YA5Bd5fdYeloUkBgLsddxSvUq84/j8\nuqyq6+X+TkrtBfABD6ucnZaBtVC/LcfVmiBLEw2hSs0imRNGmR51jTaDzGwv\nPuzeTuOwzbOGmmo+hOHiAYq1R/+6PDlk4vucpfwASH8YCVbbfwUCHD0IIz2q\nmUy910U5Knb9e1j9mrDq8x9wy55wUjM2AJdrLGWfs/vi29ZOgyjkXDuXaYtf\nG73o6whmsJyCN4A9nZSquYuc3SUoXVGCzSUMM5H3OXPw4k213M4b4SZG7adF\noIa15Vro5exmzkEDf4IZvH4GijosRmCDa4voZtJj4TxuEO4Zi9Ghuil/uO3F\nJeNkR68Nir8ZCDxHLZbTiMsMsuCS6SuuH4at9/58f6lGOXP0GbfL20UhOzp0\n04o9Odx1ldXCHJtlLubPOxiG83qec1QwoKye2nEo9mQVclF9OTW2xFEvBIkV\nz8WdH4EvDizzHjeKWyQ5rinD7peF6tYgodiaI+6YrtswtX/9X1eLQ1VYwDoJ\n0BnihIIiQ0IfBU56g+BExRbhA3niAwbnvug6/uMl0DbGK6zObYSS0owQPoCl\n8wqxLXCFPpHZeGg3hSD0lN/n0IuudHSZ0xTLlIj5t0vh0RaayiiUjPCTahqg\nL1Qn\r\n=lkEP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgoy7lKrR1OOjmCW/wJAU+qXiCxMjI5OSgLN8r1K43TQIhAIFm4n0xatfR5ndCvMJqQtGA2D52vmMWZcbsoW8EZ88O"}]},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.11.0-alpha.0_1543546654042_0.6503171965594647"},"_hasShrinkwrap":false},"0.11.0-alpha.1":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.11.0-alpha.1","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.14.3"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.11.x","@creditkarma/thrift-server-hapi":"0.11.x","@creditkarma/zipkin-core":"0.11.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.11.0-alpha.1","@creditkarma/thrift-server-hapi":"^0.11.0-alpha.1","@creditkarma/zipkin-core":"^0.11.0-alpha.1","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.1.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","_id":"@creditkarma/zipkin-tracing-hapi@0.11.0-alpha.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-+Bi9N5+a4mocr0BhsTpR8T6a2WBtZBcmij1tzGHMF4MpmadqGoPrWDJRhqRBKQ7wMN5E9ecuH1GrGv07x6VwAw==","shasum":"d0c38a3e7b5ee0c575c710460b2bc71c241bc0c2","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.11.0-alpha.1.tgz","fileCount":9,"unpackedSize":24292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBviQCRA9TVsSAnZWagAAfQoP/0mP4eidFZKGEa2EM5hl\nsNCWB54V05pP6JtoaRMF9wJhQB3x2r/+IwBlx/TQFp3TLi7PXrUgKKMt+g8v\nEGY9PmVfUcUP/cjTDyrMt+5G1JwWr2u1n1GE2CkJwhgEqPog63/xnoOcCW0K\nGJlHGLuxFH3pkGJPzlglxGkSLrxG0dmXWP9aHWJU3FpaOv2O6AV95xjfH2I6\n/42iGhPCuB2NXb2Rd0PTuaj3PwbgzEgrf56zuorgqRO66bAor7i3GqLkwWV2\nxqhE0ApJBkLK+f6A3H1mgckJCmyGgG66ov/iwp+CC8EA4UIli6WLHgxwIVEz\ndkgLSmGcDN/R/l6HT80nzUGE/dy0mHdShZnvMZorJmaTMaLk12l6Dgq+z2Jy\nryRwAyRfMCgrzmzfhsAXJHzvQ6xPJ0C3X2dCpxhutjIWwRnYDwLKORlwwebq\ntfO/skYG7OVHeC9Y+It51iOcM0SccCR0Cm3ztcNoKX5VO9wjl+/VI0NohZ4Y\nkGDiKNcG7nbzG5IB4+dAf/xskliqtjB1O22x9RJA9mTyDKvfAfVYhQRS/wFQ\nK19NbEzStRV+bdGmVKojAqVPe/u9BnaKHNYwo2gHEv4lq1Ev5zGft1errqvF\nG6iiyBTD2OYTrUb9/y5/MfBl1L822V2efh5XCA03AQbT/X+Bz7ZlzP/sZhYN\n2ZJK\r\n=hMwr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICuqHinSVZEdZHPGMQwZHczn2o/EJz2ix/ihnwBJ76K1AiEA1x7bz1uSaydcvLGgJDLG3ZPSzFhQg3jwJhHkgD4mPk8="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.11.0-alpha.1_1543960719805_0.8180422720220566"},"_hasShrinkwrap":false},"0.11.0-alpha.2":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.11.0-alpha.2","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.14.3"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.11.x","@creditkarma/thrift-server-hapi":"0.11.x","@creditkarma/zipkin-core":"0.11.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.11.0-alpha.2","@creditkarma/thrift-server-hapi":"^0.11.0-alpha.2","@creditkarma/zipkin-core":"^0.11.0-alpha.2","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.1.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","_id":"@creditkarma/zipkin-tracing-hapi@0.11.0-alpha.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-CyM1Rh/cFzuh7d98sXxmvmdZJ7xAIah79evvSi+3UM7He2COKqAQn5lXuSg9FrqXMmdgJe+JJNYh8Bzwq+sz4g==","shasum":"af7bbe95224ae6d87c1dfb09989cf3f57324d3af","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.11.0-alpha.2.tgz","fileCount":9,"unpackedSize":24292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcCETmCRA9TVsSAnZWagAALYoP/0/YUhEIOWcondMY3dQe\n2mbhPO94GD31yiZBuDsuVO/M+cuszN364ixYyQLFGewBZuDZMsywHM5EU3YN\nfo+j15Y06/2CNFpDrUQGzvIujK1wIlSmaOYVzD2Rf6kX4FqLW/NnzhYyfPcx\ntIkAjL6K/BOtOz3w+CS5NT1o1qWES66l4VxkJIX3WMYGQ5AJm1jo6e3y4cZ3\nWzQVDpsAZhngGtCDYPxgyudO4atu5LZh7Vun+D/svahDpy/mmQMmSTLaF43j\n39gMnf1mtG0QI9GqeL4mIesrKJwdwdne6zsnzUAcz4xcij5vwj4YzVAHUkpf\nYNMurWDagQhF0Vehui3UD4p1Ky9Gbz+J43ncUAoAESksnR4C1/TrjrndUswy\nndDZmhhEq1ebLJog8tA/pQjPSPLIPXiuebQ5e7APIC8YERmdaRJYVSveFnPc\nvPBJI2rXCLRJS0nRS0iASiIbEpa9RRKeMgd7v3CCyCHDGEEp0aSHtO9Ifvz8\nFDVPfs5sRJCqXHf2sFltJ3LNLl9CgGRps+TSWfAsYaJSV13D1/wDCLEGO7Fp\njEN8wuW7bq5NIdEIkUwNCqnqlnrp/+HoqE6wjGXsQSq7UBFiDxsIE/YZhvWe\nT+UxfaeYCcUdlx7ra5BCeC7UySKiuiQ8B4D0puHFtClxctZ/dylo8n+wzd9H\nlWc8\r\n=Yplw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICDzVOzwO3g/hBzxC3LdiPrbPrMHIhThEcgGwfhdYZT7AiBBrXLR9qM6S9V48ydyKLVcOSaOYPsQ95y1QrayIwMFIw=="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.11.0-alpha.2_1544045797592_0.545995022004679"},"_hasShrinkwrap":false},"0.11.1":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.11.1","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.11.x","@creditkarma/thrift-server-hapi":"0.11.x","@creditkarma/zipkin-core":"0.11.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.11.1","@creditkarma/thrift-server-hapi":"^0.11.1","@creditkarma/zipkin-core":"^0.11.1","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.11.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-30es4vpVt1m/NxMDzG84dLXhu1KjJTG5x26EdIcZoYTJt2BFwbwQfE6FC/nf2I6L8g8/RZAFXt/q1yBzxaTnfA==","shasum":"518de6e9dedb3193379c292ece3f8139acaab2da","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.11.1.tgz","fileCount":9,"unpackedSize":24260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcGYUKCRA9TVsSAnZWagAAH7wP/0ZKgwTfrmFclVHq0bCo\n5H5fQQiNpknNWCtt7d2TQ0xItksbjsRy26/FPLzBiZYKOeDYBuvV3+zB8+7b\n3b5cFCEMxI73kChZSARSbjW7aQUloN5dRf6rsdN/SwbZ5xNcuo7n2+eXToM2\n+QUDdQ5PNZkalDZxOuNjLmPkxuiDpZcy+ei1DCXMOI3ubnk0ea32Y5He+i+Q\nsGloCSzFHK1xjlCngvz/r5zq/+F8R84l6szzBDaCKqxNdzP4I8XPjFRxSO0h\nED33/X4aoVk0Qvx/dfLQJxTMpWNQ6SJzbtxzucM4RIY6CSBSKB9HSraXbGia\nqDW+KsD19jol21bwKhRtWmsO8klXmONnMuTLfTGSp5+r0SR1UWPtrcm4bjr5\njeVVUN7dUzmRRoY+3szBp+2JhKNNBFuHwqeXJjhpRwKru6mf0dYYnrSZMMMB\nxK8/KFkmmN3fBKwqMfDz49C5jcSZYllaTdaiwEds+kFwKQfa93M6EK17LvCB\nmiFwzVJ5LOBfvfgyARGwbRdE5YbYVpWzOoH5VaYRjFj4bkUI9dJ1MjMituy4\nuGWUU2Rz2cjHQGAUUljj4ypEQzdHg2kUvNOeHGMdYJcqx0sRSpyQI/Vv0lM9\nj31VN7Zo1W57L/y7UWrW/rmT0GH+5JHqL93Px0oNiWBkA+K6yJMVXJAJ6iMl\n89VA\r\n=czo4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEJqXm89J2951ZxEF3R2vdHMJAU3k0wSC8EFu1jdWkM8AiEAlt1kPKfEFFJkJhakIO2chbGsgKndMVYOkqnoUoRaNq4="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.11.1_1545176329287_0.7284047626331225"},"_hasShrinkwrap":false},"0.11.2":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.11.2","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.11.x","@creditkarma/thrift-server-hapi":"0.11.x","@creditkarma/zipkin-core":"0.11.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.11.2","@creditkarma/thrift-server-hapi":"^0.11.2","@creditkarma/zipkin-core":"^0.11.2","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.11.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-3PSe2P3rx/HfaYm5BP5lRsxrea5PTkH4s6hrmtIyY7UtLESAOLQhq7ZTwKUYFytE801lf6V8mtBZb4xLgnBLog==","shasum":"e27e524f7f96636b2547fe8aa32fc10063083844","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.11.2.tgz","fileCount":9,"unpackedSize":24260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcM9JeCRA9TVsSAnZWagAAQcIP+QFwDQ0vnFalP6LHP9zb\nkrzE8Rlbfq2FIUapTWXIEf215l8igui+pQos9q8lEieOtZz8uX4JSnmcYUzt\n1BlCfQYx/34sbgddxIdAqaYEKBEu5GJ4VXYmqG8jMJ+hqL2yWvX1ydWKlevx\n0duB05EqpyYFt0KW4P28Usk6VbGqfjHfdvKiRwoTNi+pRzKlFEBQbuDlGtb1\n73HS6bNMO53LjVHZN6cKw4+SXdJN4n0fo4Imci6+JEmH12MNm2dH3UrY9PeP\nnpje0JOTNHZNHBKRD5plcFDT7oskq7/he2ER51urOH+T3waDNK90zOB/8UeW\nrne2aPQNZraZT6bUGig0pl50zlNvVK/tdunAFSwFuX76HdRqRHhJx1KHg86e\nCDBQO9vYUlg4eOo21z69v85rddhLJeKkYR3yR1R2guyk/W68FaQIeSyabuOj\nrTubOeYyOCWgm5tBbu1heJ3p/bLBo8E154ZVL4aieTaneCDrR24xyfqxukk6\np6yvazGiYE6Gb6HnP9ftFEuw9rW0rJ0U0YEctysU6nyrCUpXNzYShW0tnKOW\nxhBuoZndu+GU5Q5mfJTzZeGyb+9A6prAut3R3p7V72dyPVqiBsAh6bW+vDjR\n51G+SkClN5AkFLOQm9fpj7nLM/gYVlYm3ITCXCJxFrNEIGNPBjhyzcMpZG9o\nQpaZ\r\n=acoh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDOWUA92eUPkIXPKoAAZ7DfibXWjEpsb6CdeTjsphWjvAiEA0avDMzJG/dlMjF6F4NjyXJVNRi4NR4zeA5zknCjaa58="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.11.2_1546900061660_0.6066835288495769"},"_hasShrinkwrap":false},"0.12.1":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.12.1","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.11.x","@creditkarma/thrift-server-hapi":"0.11.x","@creditkarma/zipkin-core":"0.11.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.12.1","@creditkarma/thrift-server-hapi":"^0.12.1","@creditkarma/zipkin-core":"^0.12.1","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.12.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-/rjCnXiqt32gOysQVRK21f4/pHqwnfFZIbEYWegUeufXaTAWkGq3EXovqc4hHel1ApcBBiURsnQ7Ngl9AZjPPg==","shasum":"9a4ac74a87568b2c187e972f2b56552460451ff1","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.12.1.tgz","fileCount":9,"unpackedSize":24260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOR3/CRA9TVsSAnZWagAAyn4P/1xsqGx8G6FSdZXgTjIF\n2dFM0IVE+0DhbaMulrlsHBlFh2xL76HxZBJbnjvYeTgZNLy21z/nkGYH+8Pp\nCBVAeaLg+BIaVMaVh9/RvaPNARhqFVlmkCrnmTUmhVtNQb+AYzrG9xHVs/Bh\nQo7HnRQkQuOtiD8hDFkJJ5mu5ppmMb1x/cMpr1Kg7d0Da558JumsER6WxvtJ\nelXZ7aCeyW3/N18T6ylmWKAfn85RRnpPFEFeJm9RwWW1IOdXZl6wfcjJdme7\nv9DTxVAdEDDD0YwjgbgFAqu439r2QOmCVweXRiSsWQDa4udMZQpmAB94ZDQP\noptheMXGTIRqD3GjRIlQmwYIvwy1dbMk9Qj9O1sNzS1H1u1rZGiQj4htp7uR\nkg85NzBZOqG+ZSQWl2S//YbXvgdRx4RcVuPb1QYC+McmvqoS5uD6EZNBlZPH\n6k9G4nh/YjktvlIfz5pqdgc3rJ2Q/dJ3BRp3liQQTmOkG8gwJRcGI9NAN9qF\nly9LD7ZTt9N9c+UBMuH41YTZre4NcyBE1oWs8OC7nlEWBitod47ZTEwrwbtC\nocy5n2cqlVV4/y20eECNvredFci5qy8Ay8iKuBn9VOnkEuXMPWobn0rfiE7J\nUdH4bMGav+1xnTDYijWdF5WZEVP5vme9pXycPrKw9D3I7QjUj6OUMIyHV47W\nXlum\r\n=qAyp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/g/45vTFOt5qMvvV1WfI/yvvo5CwtxYS1KsmfuMtdGgIhAIx/CWQg2CwzAWRoEMCU90BFL4FJW3UB8BpjMcq2ajlP"}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.12.1_1547247103005_0.30728497146897493"},"_hasShrinkwrap":false},"0.12.2":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.12.2","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.12.x","@creditkarma/thrift-server-hapi":"0.12.x","@creditkarma/zipkin-core":"0.12.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.12.2","@creditkarma/thrift-server-hapi":"^0.12.2","@creditkarma/zipkin-core":"^0.12.2","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.12.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-Sa0GVfwHycwu6R35RC7FsL/8nCCl6s3USH+ZrsuA/whzIPc1VD85aQR+QtPcWS+QufpWncgdyxSMw7BxeSHc4g==","shasum":"c66916515a4abfc092a249aae7f8dae7e0ab8a44","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.12.2.tgz","fileCount":9,"unpackedSize":24260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOR+7CRA9TVsSAnZWagAAW50P/RuPQLerYNMZ0CEh1TRQ\n7n9cw4G4pmyMwhMsHVLgx1n9XSFyk5UjS9lVildx5C96ZzUO/AXkbT+QKPpC\nNOVUr/pvAwbPPbskcGFzA/5yHYNSw9tMcm+YmmDe4i+vqoesMZsIkerj67EU\nGV0RLQduc4bae6zQCRebHFHMKsZXIKo/HmU0RVasVmXSpa0aAFQg3LcqlrNR\nE4p3MFNWsjdQMfCz9E9t+dUh3vGXeLp4irDEnmNdyYI2y0E+GlKDHQ1sgfDW\n+3pL/Jt4+UH8aECBo0KeZAOAlVcTI8uvwZIQnUjzeZqUmyl3iXo3IVhukhjM\nDMpxW8Klw8zBNPuYXXLY+pEFNKsFZDL+yv5b5/c7ABe1ssnCpDI5unyKIG9V\ndcBBR7gkzOBYt8atkv94sLIBdSmYxSwNXYJ+Lwoax0mM+swjKnphWW0cvP2o\njWDqUDDKG16T/0XBFg77sXSSuKLFZPnVDPSHErBnl7jbrLVC8dWBisIbvhts\nwTP0APBTe3c84fEfJN4v5QDhEwJJZeENkVzY2qRAsn0L+fzZZCjd7qRTqnHF\n6Sv/8Z5d0JKMVp0rZKcIyodCiz0HH8+oGpavSrPelOyomrQxGKPU8Y9bPgv8\nuGA/0rPVkKldId3OhPrBH18BT0PD086Vdt+/6Kqz0RNnBJcQU30irkLnxN6a\nPBvg\r\n=w/Td\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyWklFA+pApeHSpX6c435H6MwKCj9UdPzCu5hDBM0FhgIgUOxt0H9eARjVguASaOMB5UPz0ML64HJ78KTGvRRurP4="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.12.2_1547247546867_0.5481734783149634"},"_hasShrinkwrap":false},"0.12.3-alpha.0":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.12.3-alpha.0","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.12.x","@creditkarma/thrift-server-hapi":"0.12.x","@creditkarma/zipkin-core":"0.12.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.12.3-alpha.0","@creditkarma/thrift-server-hapi":"^0.12.3-alpha.0","@creditkarma/zipkin-core":"^0.12.3-alpha.0","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","_id":"@creditkarma/zipkin-tracing-hapi@0.12.3-alpha.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-/+PDoDpkc3HT8vIwBw9PUmq2Qsy3uIwCrRcWvlu3724ERvsGng7pSmMkVRkwRFIpsuwpJTxSF/Eeg+wz3+yRIQ==","shasum":"30f0f484bd59cf2ba616d40d26c7b57fdee52e58","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.12.3-alpha.0.tgz","fileCount":9,"unpackedSize":24292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPA8ACRA9TVsSAnZWagAA0B0P/3vWz6nEL0t42HZ9CbuM\nGdIwx4YJUHEheUTCFycYEzshxYjUqs0n0sX0MWPZjdQtYfVkO2OHN+v0Z1sj\ndCmiJki61PvEseTp4hGDcLldCRxyyEvkhsTafT5nPdc0ggPs3UJRMF+d0Crk\nyDoHo9eHpJ0v1Jve5yOnbfDyWWeJ/zvJDqjMTiy+gViifkRV2AgHi5woFw0D\nzeFBC+blHurfnjrAhhTiFHP19UsKUPIuukA4jMpGctQK+taO80PxHUf6oBGW\nl20avBU2r3M8++ELnaqjnS6HgyxcvhXfwyjJfN9axw2OpCdTaT6DU7KwHcUc\niwPyuXX/F10AwydDKY70GZv3HvfSnNIC4s7qJCa7JxdVKgy4Dm5boVzK4eMn\nC8Bp2jx2lFeEfkPGqyk1KaXyfvXVFfXpKQz75ENGKMS5HKZlhu+oAeAmczo+\na7PAg9l9qEYCutlM5yDk6OfFBdegmNIn394IGLqjt+EhhGuUCFmTthCphZis\ngPQGt8EZ3DrqS4aMvjLxFErW2bYZ9D5t7qR7c2Ene6l2d5Qnv7WZla075lqx\nAZGAv6WRPje0JSJ0ZpeqEImgBL2cqaeuWc9OiTW0WmAfU17+TqXxMhvPlzGU\nFfTdxd+JswRSMEauMiVbmHCnYW8BdROGnQoa2pGS/a3Vb+G+hGsmHaeJwqrH\nxj4k\r\n=wZ/j\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGniUtkOnwp6TIq8CLqnohysVkMMYFGL5Vw/vGGpBvzjAiB05rtxX7SqrGfD4ZR2xIJWO++10ULHvVbCsjm3KgGKHQ=="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.12.3-alpha.0_1547439871534_0.6200526591266158"},"_hasShrinkwrap":false},"0.12.3":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.12.3","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.12.x","@creditkarma/thrift-server-hapi":"0.12.x","@creditkarma/zipkin-core":"0.12.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.12.3","@creditkarma/thrift-server-hapi":"^0.12.3","@creditkarma/zipkin-core":"^0.12.3","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.12.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-lnQboL2nk969guZGu3pvSS69lu/4p41MgyMxX42vcXQ6mIxucaUHmDcCkS4My5IjYdy4yEczDL736MRTfaBUwg==","shasum":"5f3fe8415004d401061b756e0ab82447b81e4162","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.12.3.tgz","fileCount":9,"unpackedSize":24260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPBSlCRA9TVsSAnZWagAAr9sP/3MWl8ME6DkpVAjL14up\niTE4fMbGP0n0fY64T8h6bkKT7a6fw6LXbscc6SS8WAhHs0j0D39g5yDdKk5W\nH2B0ejs9YiCSII33y8MYivweHcYZlBEKZfKvnFBCJ7UgNXYOtDSAFe6EQO/f\nTo9RBUpYhYCyzavtMo0eceye+QJA/rS75Ks6DHkomfyVFmVNNPAZLZib/wOS\nQjCubyELODPhjXeaH7PX9fH4oFRF+6kzqy7lm9nY+07wrK3TVYBOUFHL96DX\n5rpB7I2tzS7psRGdCYahJoOA/0xQr75Q/9tRvwX7T6qfC0Y51wO1NShBIMdq\n5EIXxZ6a+G3ICtFY7EKMgZepeIHh+rFbOmODcIHEMFmtjnahbkCtiuBH6RDU\nwdK0n8kv/ky0jx+UE4Pse0OdWQGknDxhIVrVhc9EXAWdol3Ny74XNDJ3U8Ig\nB6yrSxGqWhEvMqT6oyVl1ehLEfr8sLEYswwqDLUzYwlP/CGz90vifL7zD7YG\njx49HSVLVf7Nw8aLPvUCl1EbsO3KJ0sOypRxRW1DYAeyBGwrRCZ5tM/Tw1tL\nRHQJvP9QrIvJ6+29EA2+05+UWSJvPJeeFY89C8cNPJuQvqwN+iS4i38GUpnC\n9OHunktX2+ofl6H/CeTwHEK0wmrO2YpHKKnfraqzQPCg9EzsnrklQ/04Jnl/\nzz6A\r\n=Ffiw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6pU42dCDcQfDRqesFC857BnwdbvhVSmWjLky6EnJBbwIhAJ324jivqXAbATb3mx/JsCcOI7YVznKOi2PAyGzsEmni"}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.12.3_1547441316805_0.05409743259001787"},"_hasShrinkwrap":false},"0.12.4":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.12.4","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.12.x","@creditkarma/thrift-server-hapi":"0.12.x","@creditkarma/zipkin-core":"0.12.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.12.4","@creditkarma/thrift-server-hapi":"^0.12.4","@creditkarma/zipkin-core":"^0.12.4","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.12.4","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-iJw9p8rRlsu6bGmfWp3nl3OClyxTh4qX4QivDp7dUrh9uqgY+aclXy4hczp3SaluouUdyhgU51YeQyGiae2kOQ==","shasum":"309742cd62b72e3f9585390b1f3391fcc316595e","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.12.4.tgz","fileCount":9,"unpackedSize":24260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPOUqCRA9TVsSAnZWagAAb8QP/0Moeid3lQniN/64V90T\nhuuT/xnyVpyKrTTyTakk+Q8HF0XVajUAX6DxOKfq11eB1EAn8Q4ORLe/t6B6\nN3hQ42MSnI9uVd96+is8lVx+rhufEpTwpHsJNuaIASXF/qSt8AICcn+y6fJ2\n/FDBC2NsPHeuFNGIiNb1nLPjx0sbOkNsyoKsZJpDuYIVKYcQ+yxeBmpkN9m6\nVfFNCF1BI53HuQDbISj248vzc387EhOdqWgHZWFKlpUPPDr0jaIA478OQli9\n9bawQQlVWJEKWuzOnog1QvJlcCU68Xi+0JFCKyjlwLqx4H0jggw5Hq4JbR2e\nUWNlJlwqnYZXrLY3OA+/tMp9uLuemdeB7FsbFnxZC2s4gYgeLaeyuQppYZty\n1X5Fx0v3z2fgndLxzZsluvG8gOX5qfSQbpJmq1pmLjgD3Xwz7o2eHQ8wmDJz\nd3gX7tbl3E3QJKyto6f9WNrEpqmR4VaRVIELHkKCdd6R5ZAZbpLUkdMhTbTx\nI7b1KmAsmmzVzQhhCRYLk1G2iRc27agNPHUwi4Z6wlyi4KfWYrlyrXemDn6s\nsQ96T3C7L/51vh1rZhS+sa6+itx0ANa94t1/H7HV6Qv9FjFbHXXvfsZBAVPj\n7WaTeyKL+Uoi+EyqdGOp2zWtvhLbjPJBFZ14t4Ev1P3IP77DQG7tC0m4hUp0\nUYgE\r\n=XNXq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQPyeks3NJpMKfv1clBMhK949wWbKlybWWkPh4tzV2CwIgSDIDlEIeBYrdH+pAdX6PhmdiktT/4VPmI6zWSgSpYr8="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.12.4_1547494698255_0.08337141662391856"},"_hasShrinkwrap":false},"0.12.5":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.12.5","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.12.x","@creditkarma/thrift-server-hapi":"0.12.x","@creditkarma/zipkin-core":"0.12.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.12.5","@creditkarma/thrift-server-hapi":"^0.12.5","@creditkarma/zipkin-core":"^0.12.5","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.12.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-xmTqbjMydrRsf+6WM5H5zODK1d9VkKMOrGx0opZ2nrELzVD1ruI1/Ywyjc3i1OUo3E7h4I+FRLdQ8PFPBYlpPA==","shasum":"862cae9a52dc981b77f3205efd427b0c911a9a74","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.12.5.tgz","fileCount":9,"unpackedSize":24260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcPQpZCRA9TVsSAnZWagAADZMP/iz/m7EVB/BF01UF/quF\nj2Xto4q4KwyQx16Y7HKkNqAWO7t3YT7ikUIrPqoZ1s+S+mui/gZa5Uqb1m2T\n9isoxYTdmu6WhVYcAXiQxM64IQ/YsdSbYXU3u/8YO05IHP/W0KiwH80jZrCd\n4+RkYMXdKWKaBVvMx4CeeojRzZZBxIJYrAtZjZRpuoOKHrglZv7vVDNZBeGU\n2h6ec87aSw0WG9fhp8jhMhqsQvWWYtlkEoWfVVo57ropUdm9cIGEUY0fsu4v\ntnpus/SFx98hVMGOZ/DCjT362NWtkaKb790kn9lj5wPtM5GRjq5hKmKC17iP\nR0Zt7cy9pCzJDJ/BuJ0EbaHquBF3x2pmvpSdyvpBtcuOCMIRiKPt2kOO/z+0\n3DZJD1GEe0nXbKY++tvkTp5+miIu+YXJR+iF/a+xR9+GXD0SEcf8wpKpYSDO\n3JOMRWxaQXhzLOUNP5Z9/Cc0E6/6LMpv50CZGxKSYpbm354aNROe5SluAICK\nwdg5bo5IPSFrvUx9D1wTENLSdqto96KnAadFiM9fZzOoKKstXW/OBKqUVWjY\nvNZwjSKms6/nxJypBo+wxTv0vTdHd/KzSENMg5Wi5dcGiBdLopjT/R3ttW0x\nC6AtY9hDkvB5OZYYCUX/kI++/4rJnZ9FsGd3MejI/TsahuTLtt3VWzz0WNif\nvP8Z\r\n=njCs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEsUodQbsGQ+2GoMy63crgRQwxZ1ELhT3cW7VtSGrceBAiEAhS/tJ2p21yhG5JL9sKgClytdab51w/BozcaTjWmpKHw="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.12.5_1547504216517_0.8449591907257372"},"_hasShrinkwrap":false},"0.13.2":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.13.2","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.12.x","@creditkarma/thrift-server-hapi":"0.12.x","@creditkarma/zipkin-core":"0.12.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.13.2","@creditkarma/thrift-server-hapi":"^0.13.2","@creditkarma/zipkin-core":"^0.13.2","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.13.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-1Oy7H5sK08BA9MLPIFjiJbk7c0NsOKXV5dFT52a4bXFjAKW1jDVYhpc6hJlVAxZH+MOHhFWfZMf5f9zsJuasBg==","shasum":"75884cb30e6e7ff111248302be40b75f085460e6","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.13.2.tgz","fileCount":9,"unpackedSize":24260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfgeMCRA9TVsSAnZWagAASZ8P/jmywYNhwGeQBo5GCx74\nA7AGqF9aCXyClY73SKX/heWj96AIpqgOjIFeE4D3L24dbZTi6Wnmpz3YYPh9\nqdxNZqEw5qdQyh5+qBYbMzDPXYX7DcBCMPLro7qLJy2Panl6JIvs3HFXJhah\nk+GEhuuDoSXYM/q0rRw7p1v+7ZL9pMRj1/ZZZN2yy2EMDd2AAQ8U6WnnA/Ih\nvKuPEWtiFn1IS9/eqml6cB0dRdQKbUNq7D/Pibpxnx2iyAP8TJSk0gJtv185\n07AM3RPrzsGL20rw8tQTPoUR9G66wHewapUzOmkxTiSoIrxJH8KBP/k6pC1w\nWGMelsGCH6jymBLYT0BqjhI930G5PTMrl/W7gXzP7x+BAYgf2Z/x5xMf3o+L\nWivZx1ifVpqhhQU4XBNffX4/nWsc8XvR4Nr9tQJPBNWwjimW+wRWvYZ2U3Gd\n9cwVoAe40z2Au5kngpcWa8srTAuedefKJEG4PqTvH/ar8Vb7PfrNqjRs8fvh\nEVzb6xIzy9LzNLp7ys2UrxzQFMguNLjbge1dlm3mUgR+xaijrBD6n3cv+YGd\nfznGIPrLqrFLltW3FT7gP1YXNFf1m5BNtPTath7sj4BseLDSLRGFqnO0sBzR\nXOrYZUMwjPHcq7l9xy1EKZu/qtP+7LbCJwiqpiXwYXnPgzixstJN1qiX7jel\nYo99\r\n=mWWh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZR8eJhj2PXB+2EGcR6he5FA04wDLbkHGXeNBgLdyHswIgK+j0xYCc5ghKFnmiBm1qoE6Uzma+oCl8O5bCt3ZC4V0="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.13.2_1551763340146_0.3914152565455067"},"_hasShrinkwrap":false},"0.13.3":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.13.3","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.13.x","@creditkarma/thrift-server-hapi":"0.13.x","@creditkarma/zipkin-core":"0.13.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.13.3","@creditkarma/thrift-server-hapi":"^0.13.3","@creditkarma/zipkin-core":"^0.13.3","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.13.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-MqWpvM/pBCpmZv67jalhcYW2OQ/rN+4g+UU+bmwZOHfgJJyEfgSd7oHH5O5DXMsIj9ko8cfzeSoGrpaE1f5JAA==","shasum":"c4e4d8bdc6c08be7d3450c6866d1567e1a63fe04","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.13.3.tgz","fileCount":9,"unpackedSize":24260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfghCCRA9TVsSAnZWagAAbN0P/A0ShjmP9332cQFCxmG4\nZT39nCNx027SWbeSLRTTOmIu1WGc/CqAlhX1GyI7AAFYVseSTGZFOL677of9\ndwLR1uGVAudLI2Pibrf7SmBZmuWZ+wip5AzuoajtBau/iRcV9T+pb7UBgOd3\n8eysry+i8J2SIq3t1wKP0GzyF1EIH+1aeHJIa96BNN6eHgdx0xfqCSOz5EBe\njTr9T3eXNpfV15wgRVuI0YniSmrPzj54yMzoFXELUB2KC8V5IPOwFnDuVCpK\n2T1DegryNVG0cWyDUeqo56QCcU9E44+ZqlnBAS/JS1ezPaWR+E9MjHRY7fuh\n+uzYhyuaPK1RvCh0jFFK9yuZWXapNlwDaPTttYsVvE+rIKgR5tv7tFOKUkDb\nHiKjWROW1l1Kuourtekwfe1iVCrr2AnpSrqiGLGZ+eePJZAc8S5I7FKc4qj1\n7s0AisNdNQ+PsLoxX3jF2FJ/3389zEwlv0Dm21ZWzP2yIwWfEfsizxPKyhWi\nzm516ifwT0olquWRrT0uyjKXHrImPqmHksAT9ya4u/COYlqqSjrYtdXrkQqw\nhfCqbzJJYcBNebRoiPfeEJrdmleCeHoJEygcr/f07IapjH2YFYS5063eASJM\nfe1qmwMXWqyR5LTHxoyWcbg9CUFT1cI2yvU1ENfH5S5MVGMqkhq9YF6q83s5\nX92Q\r\n=IrUa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHF4Ofzbqp/fuZHy9ZPcvinp++za3I5apGwBaORloAASAiAZt6b9NnmdM9Xn8H5n5/7NGSsIX6XbiQ+otzz3qKkaAA=="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.13.3_1551763521339_0.3099073488921076"},"_hasShrinkwrap":false},"0.13.4":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.13.4","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.13.x","@creditkarma/thrift-server-hapi":"0.13.x","@creditkarma/zipkin-core":"0.13.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.13.4","@creditkarma/thrift-server-hapi":"^0.13.4","@creditkarma/zipkin-core":"^0.13.4","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.13.4","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-++Kd+GV+Klmhu3WJXyOxgFWMubE4QutHZf2zLKKFQquVwzdbJzf/hkQZEPKfqZAKDBkPIXX19/rpCkgiojj7nA==","shasum":"b9cbdae20c4771529635858544a880f9b6ffaaee","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.13.4.tgz","fileCount":9,"unpackedSize":24260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfpuqCRA9TVsSAnZWagAA45cP/jSOtQ/9OdfAg95BeAuv\noAPdon4FxKrFB0HZtQ+pSyFV7qlZ0XXxMIM926I4VUB6BSe+oENzouBuxT4r\nhvrMNrQvnd0SfIA4sBW3rBBmtJIL9FLdZseLUYy7SIeaNJjk/qa57/RmfcdB\nahk5BsYbGqY2hY268bki/BZfjQJCtSvbizOjgTTJSYx6mdB7d1N59E0PZ2LA\n94QoY9RMc3/lFAXTckEilZzxtHC6UhXgc4k5Ub2YIZEuOJubF6lDh+B9v/DO\nhmAQbxmQyKdxow/z8hgk6eHNe2r8xHozWSq0Qp59xDhZH4DrZWo5UlKsuIzC\nItcTmYETZdnn5OFMabFURlade8eRXoTdAtdkrdQhwZ315bRyc/pPoKwf7SZX\n9mr3oi2sQMfTulbrpG6kAl6lZY/lrzhLRAKK8FM/XTyo1RUljdsrB7bHb+TZ\nvsmHrkReVHHK3zL6AlBYS+/EV3gs8KFzGLrPpAhIj8WdqcZ1hWpsTfKUk7NQ\nce2qDm5N6SPMjCO4l9HJl/ngwdXKsSnAjg75DNSi9fvZ1jKAl0mUyf4nZLBV\nAECFtrfa0g40sRumnqrfi5EHwiXufy40jaRPI+IazMaI8pepcyWF58tRNGTp\n62tWHE68tJJd/nJKHmElw4PNCXAbVJugdYtXofxl86E7UhtaSrmTWEDJRKDZ\nOtD9\r\n=o9Hl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICEqLvzPO6QGJ7l0waglp1j0MQpv/5kBnZDCSW9I3fEiAiEA9Bxv+p/IFyprDHuiFWMPBH0CYO+9t9u1JL0O1SrpBAg="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.13.4_1551801258028_0.23471354268634692"},"_hasShrinkwrap":false},"0.13.5":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.13.5","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.13.x","@creditkarma/thrift-server-hapi":"0.13.x","@creditkarma/zipkin-core":"0.13.x","@types/hapi":">=17.0.0 <18.0.0","hapi":">=17.0.0 <18.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.13.5","@creditkarma/thrift-server-hapi":"^0.13.5","@creditkarma/zipkin-core":"^0.13.5","@types/hapi":"^17.6.4","@types/node":"^8.10.38","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.13.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-H8XyQgeg8uLChWkpO+2KdOBPu7JNWS85ccLa8FGnnswpjCm3iuAMN8qlCM16E+UovTZnr0Ac6gqq25UZ9LPK/g==","shasum":"7fa16a06903b32fc93de3ad4df1fca49f8f89403","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.13.5.tgz","fileCount":9,"unpackedSize":24260,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcnbMdCRA9TVsSAnZWagAAipsP/0Lev8e2tYUZx+HSw6oJ\n4AsbM+Sk4xhwOKmdy4dR1YKLRqTy2HzSg7hpkIvEcYci9I0jFwKosMkomCdL\n3DlD7g11Jm2LBegRvkOh+/WqHoOhfpt3RWOCv9kDj3RBySVIqkzpvylSL3+l\nCEr/YOC2r1YI5Gu3KlC0Y3jjbjEmGs2xg/Ky3Nd7UaNABHtI3UfhATFfGgCp\nPt1rYStd7D0l/8p3sqBskIgi2KARsL0w3mcTtp2fPOmg+SlCB91ePlp1wmTq\nsTGG9h0s5xASRZDdVYKb/lnXUbbPnqgq6NQumScVU4Wz0um65A2ndi80zP3V\nl1vJoSaAvW6tirWsCvgjZRld/EvsmjfFCtuWelQO00ErSQhHeVsJosRixOjG\nEABHDUemET3PLwSZpkenYY19uyikyAZOtH8oNpF9PmpeuQXGBVmrGBJ+55XZ\nzOMcw3QBPmmKlsYMoMnf6dlnrU/kEIFZ9PMchPtXHqFEM+BXkM8oLcvm1sfb\nAz1zRcvgvipAUtIazf8xH2mw3QrV/h76gXNcO1ihd482DoXyxNq7mZQbAJBH\neYELujcR6dRB0qG+szFc+2c9tb2mul3nMXH4xyw/JsLQvW1c0OUQGH1RHhAZ\nU3LSEe9Odpi5/Zlzutqj7eRBP6xUegLG3CuDvFTimCQt6mtzXp10nCiMWkQZ\ngmwZ\r\n=U6eW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICKz8gEsStMgAnXAfFlUlZMI64W9V6g6fP0cmuM8+vwLAiBp7aPKSq7zYEKoooERBvNgayy7J8CLuYfXx9Yb+wg4qQ=="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.13.5_1553838875478_0.053153960556587165"},"_hasShrinkwrap":false},"0.13.6":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.13.6","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.13.x","@creditkarma/thrift-server-hapi":"0.13.x","@creditkarma/zipkin-core":"0.13.x","@types/hapi":">=17.0.0 <19.0.0","hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.13.6","@creditkarma/thrift-server-hapi":"^0.13.6","@creditkarma/zipkin-core":"^0.13.6","@types/hapi":"^18.0.1","@types/node":"^8.10.38","hapi":"^18.1.0","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.13.6","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-3/f1AHKrT83EIf16YixzvIdF0X6w6JoAOHwO+DG3VeJfYaqA/M5AePd31mAeTBBaZCuD1h+hm86Q9HMreCgZCQ==","shasum":"7255134df1f0c0c78fe52184e5394a756332a971","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.13.6.tgz","fileCount":9,"unpackedSize":24287,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcsRCwCRA9TVsSAnZWagAAYRQP/jsiCJHQUwoHotdqUXCi\n7dRiM9YZQKYH77e+OAjc2IaLR5mWH4FQDDU2xHakM1M6ALd8ioARM8QRLKzX\n8i5la9yxco89JoR9U32OCxuEaFnZTZY1zTg3UOsNszHaHo3G733TmJrPqeeH\nqWW1SDtSAocYogiD5KuH0DKSyjqfasIX4XQ/++pWHvhqBW39g7hIaczw1ss/\n8tc3l6ZHR9qpouPcvhzOfA5ZQfz4KmfjwWKNS53ZCcwfYlkjiAQgEgAgQNhY\nm/Qd2/hUvff2m0MA3IghpHySotWT9qGUMt9tdGseEuFWtKHOz5BH/TmQao8S\nT6YrDCw2rPmmJAfBIlasgnL9w+ABfyC6Ka6q03WE+EpE2O1c/RCDDSbtrvme\nHD+DbShy/u7F3jd2TWYh/nO94aLOIET45T5O/MMnhN7qngMCp7f+pGojL40J\nSgi4oq56w78/qzycMRDWy4HX6dmPEo0FgzF4pJoC1Rr9aUXP+K4XQVznsskj\n121qnyeS3LZKI/vkSBhX7q3cCDik+5o9bNg7hbmrAsc+oSpvQZ34NuCrsMNs\neUxfxfQBt4Y9DUIoPWlaPUUdfKTFXHqKULHJIBQr0e972UfmxjJtP9/S824o\nWIpcHGIyGZXSqYFD9CLSBFz6L1f+OBQJhzP+grt+km9wjlgqTHQcxBMwpSbu\nclvq\r\n=dzRb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGxqj8gyANTabSm/vEKYPfQxyYknbH8dc2MOLn5Sa7JJAiArZz3a3jbQKiBfAki4yFg9aqyjGQmwbQ7tnP02wbSnVg=="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.13.6_1555108015688_0.14446396799019112"},"_hasShrinkwrap":false},"0.13.7":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.13.7","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.13.x","@creditkarma/thrift-server-hapi":"0.13.x","@creditkarma/zipkin-core":"0.13.x","@types/hapi":">=17.0.0 <19.0.0","hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.13.7","@creditkarma/thrift-server-hapi":"^0.13.7","@creditkarma/zipkin-core":"^0.13.7","@types/hapi":"^18.0.1","@types/node":"^8.10.38","hapi":"^18.1.0","lab":"^18.0.0","prettier":"^1.15.1","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.2.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.13.7","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-hnTtT7hCb04nAKkkdNm3z7WQff542YyMZcib4ULf22bZHhtWIp6pabQ0CBVofnBo5YvkCNqMfkTd7+W5hWODNA==","shasum":"77bc81ddf66c21c2a834adfee735ca7c0e77527e","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.13.7.tgz","fileCount":9,"unpackedSize":24287,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdCZtdCRA9TVsSAnZWagAAu68P/2rC5eVKuC1oVKRi6QAF\nDFHZj7cFwAQ/jRcBjOpY7p0Q9kSlPJ5aPE8yXTN/dUU3qY32xy94QFRUH34Y\nP/W3urbXKKwt8rGBkaQc0Zr1si81oww9bguDi66YGi1DkIZMfleQkDDOx9UN\nF4LfCdF/DA5ldfK/J29K7ViupjE+b7JGYcMXj7vyFKjW4sWQbyDglWM6vojD\nj+1AIZn7V0F2HqfqowsggA+fZwp6mieQiqOqneDl/iH8+cq8+7Bchdhe7+sl\nLNaQ335g6moaGM6Q2nKIbTuhVqenLCklCbuelRamAXk/a5QKgtnRrWhbgIfk\n0+HoP+QxDD8WUAIZqtUxv291ttcF5uorx17LO2TiSZjOY4pjzAAoieostjJS\nmUZuj3MnLo+wavy2NdD8ZB+8MfnURcBDnNCz5zdB5sU3jisaKY6gsUEhCfKh\nHVIEP95Locgv8hnFXj74CVj3z2WxMkX9V5Avz5edTIUBBVBfh+v4fvzfqJ3/\nitq8OnGdl39jTt2HukJFdceMUnoJ14CUBpG4r8sarF4a7LB5316xI5ODzzJ4\niYwqvafYtELlScflBOm9b90Df24fHykKFQQMR66/8/gu10QplsXs+8OeFS5E\nqnVidqfrCQfIqe4eoBTM/BdEp6S3LrRxpYIPkDcZyW7aleogC+OFOgwo++o7\nGkeb\r\n=H3GO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF/85i0byBtm/RoKWpbfbqnWpstbwrN0PtDWAgd2DHn2AiAwRoHUQsOQlQ1npxHMg8vUawAzJLvDJQH1wMe4r0ysZg=="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.13.7_1560910685005_0.10383739166368744"},"_hasShrinkwrap":false},"0.13.8":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.13.8","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.13.x","@creditkarma/thrift-server-hapi":"0.13.x","@creditkarma/zipkin-core":"0.13.x","@types/hapi":">=17.0.0 <19.0.0","hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.13.8","@creditkarma/thrift-server-hapi":"^0.13.8","@creditkarma/zipkin-core":"^0.13.8","@types/hapi":"^18.0.1","@types/node":"^8.10.38","hapi":"^18.1.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.5.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.13.8","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-wujJv1GxbV+arABPmawOe8a3eJkcqU8Ltzaf0A0QI2zAuQhKB+Q2QAWRROznl5w4c4u0ETbIUx6Zh0OWQlHIDg==","shasum":"afbe8444893fa99d0a7c078b8cb9126acad6386a","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.13.8.tgz","fileCount":9,"unpackedSize":24261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSzkqCRA9TVsSAnZWagAAsykP/2iqfdDW5bYwTd9NM7YL\ncOcxotgKa+1hNLwR1x8RqdzF1a6arPS8SRE4dod94sJax2LDhFUxiUAHIme+\nWxDvPYASR74DDdgjpmfTfUN+5sYcLcxLbFIA33WJ/Dn9QjI7kJPVHv0woLVj\nIr3k8exOK1Y2XSq7PA0PdeJg2TAqnoo2lKUawkg3em5hXXj1FDWTvub8+zKV\nbmGY8OzMxWYXIM4tK4LtrcBC4/vttSe6X+85riWuitf1atmp/BYIbSamOeWs\n8d1SnrZNFRGazX896fd5WemHnHUX51me3f8bXnQjps2qAZTJ3kdsPFXFu2u0\nqWrgUfWalXfQcMYL+hZlsGHO4zoeC23mNCFnrCvN8PB/Aibo2W0XOd3Mpot4\nN7orivv8AK3QIOYIjdNj5Ho1A0jD7qZci4jJOsiMHI6Bdxf8XziDxr/xk7g0\n9aGcj3VOFyntCtAlaT4NVFenFE44cN7rVTOa0dd7WmUVMyqcT33A6f6TTqEC\nfLQeweu2HY0g8fBiCq7XyeAx7mzeJ+QA6OGOw31rtATZiq12y3OmZ6puIazs\nbmL30fi98Okn83Bj07S2Sz1t6i4l9X0C0NC0OIHooRuS6SZcvFxq7MwST03r\nHO8ymyskJjBLNavEJCQW1CgIIXcw1hqzLNFqq9t4eaLT+0HA+O7+8a/mdrma\nCdF7\r\n=WZce\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIiutMmys1IwUa+48WTSPR9CER0YKM/I/215ufvDT5lAIgYp2jFDiLyDARYuXTbMrOtPsFVNCzv3GjlHqFHNLVkvs="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.13.8_1565210921961_0.8741493261082285"},"_hasShrinkwrap":false},"0.14.1":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.14.1","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.14.x","@creditkarma/thrift-server-hapi":"0.14.x","@creditkarma/zipkin-core":"0.14.x","@types/hapi":">=17.0.0 <19.0.0","hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.14.1","@creditkarma/thrift-server-hapi":"^0.14.1","@creditkarma/zipkin-core":"^0.14.1","@types/hapi":"^18.0.1","@types/node":"^8.10.38","hapi":"^18.1.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.5.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.14.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-r/9Jlret2Z7FQo9AZp8SYai6IX/4+oeJJxiuNbF+N1sHpCFeff3Pq2t6k2cIgfVewxy0DND1VUJ+U45CZh2qYQ==","shasum":"0310542aff9df00f0618ad21e10c1f16cae3cb98","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.14.1.tgz","fileCount":9,"unpackedSize":24261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdTgZ2CRA9TVsSAnZWagAAqikP/3hO42Cp6svE27w1wtvE\nqjka5ag1YgOtlYavnUGWGs9+1GJ3aOtDOLZ3YB28Q43mqJXr3L+snZ4VsNNJ\n79ANWuAiuPc30R3MOVAU99MqWI+/fd7s2YkB9GLGPvK4yzJQRuQbdZhepsrZ\n+kwwM0ADTsVN/zWCG498vTV9RJ80uUBuIcnl0AeK+YR215KbkiBtLTSJoO6C\n6mniX3HVwbuaVrve9ykfiwFCpSQ+H5toSUyJuVjpyvBmF5UOfz8LuVDYRgIM\nQhjdPpFAI55gLoUTnIoPJ8eMbUcF8+WNJU+9UUF2eFy9MrIBsuAU2HqY48Wk\nMGaah3spofsSW3oNT75caMfrlxTNsskkyYFAYYoMlKs/xtqhWhomGQLWN8jF\n2Ja/h+3pXfJnTCcyjqVslho5L1p18TY5adoR2oIIhXc+NDxprnZZmvLSOJY5\nlKstU7VDzVCiVvRrRygu/GDgU8ez2wwDnJRF5ZOzs6ELa0VI2dJTRMt01tQ6\nEwd3lrY7LZ0HcBhU3B5ycc9IqsNAMEtaXPgwl7mICCNuv9eIV/Neq75JRE4H\nQftXpNbMTm4iCKTyvE2vBeewBR0CVMUhtz0YpxYiAFuPjq9LkE7aqTHkACki\n2uM0Dkj49h4fhNYdNBL+dXDBHzk6gMlB9Ks11/Ai+ZLVYTZYqu1f59QC8AhQ\nbevw\r\n=/2su\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEzVB6PWXfkhXX2/Cn/isl9iiyBSaoXmXVH0ESkcG73zAiEAic3Eh6inD/iiDOnW6K1d5qkHJ9xWjOTN7rlcRkoq3kw="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.14.1_1565394550007_0.5053570113823751"},"_hasShrinkwrap":false},"0.14.2":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.14.2","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.14.x","@creditkarma/thrift-server-hapi":"0.14.x","@creditkarma/zipkin-core":"0.14.x","@types/hapi":">=17.0.0 <19.0.0","hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.14.2","@creditkarma/thrift-server-hapi":"^0.14.2","@creditkarma/zipkin-core":"^0.14.2","@types/hapi":"^18.0.1","@types/node":"^8.10.38","hapi":"^18.1.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.5.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.14.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-7Vhieo2ux7rICwjomiIUuP5yf/v7u7QoRnKRDgUVrxv0xb0bop1mktwzQ577UsmLVvZsbP2oWg6mUS466RVmOA==","shasum":"c8f55157b0d02b1618817d7ffc4d6e698700b4a4","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.14.2.tgz","fileCount":9,"unpackedSize":24261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdUvPlCRA9TVsSAnZWagAA6UEP/2ufwDy6xt14XDca6qV5\nzeVeQmxJ4IoGtsJutOiPhNDp6ZOZOQkbPA1VGmDig4FCo2hh+oQlW2gkpEDp\nm6FMX+UftBZwezgldMczhR86EzYjEgvs33b/SpPr/+tTziPj7Yo4DJLMK+yG\nU/EoWwLsNy8456PYaotEVTYBFMwazBG9nzrV45ynaHeZ8AlBglgb+i3bGwTq\nRdfLEjTv+XdbNhZ0WCJp1bhPa6ruNvQlAfE3/CFLkhzXwkmGTfErRI2xqVDj\nA4VmHmUMbBlhCtKiI+frBRt00gT+pdZ1eooNQqtSrtjw55cRrm66oHyGX/DL\nKbMotiwU3CNBtHvJwxxzm0awPFx3zmKWZlLCoIere9OOq7TUYqLeQOEKGcon\n39s8yTV+ueDTxNFnMal8vXJ4U+e3QLeL+yWc1bbKbPJK8y7hwpaAVPXdk+hC\nKC03GfgjINf7WMaaGL6O3iRIgpESImY3vYA89XvRbbOygcThFxBQKOy5wzsg\nZ7pId0GdFhKM3CanXs4N0mbY/PePNCRtnqMzb+avtyM9WOoHupsCbWuAKcqm\nRZk7oh/jmzRC5ft8BW4ptEGN398AuiO4f055ITOTcDYtfhqob9OvJNHVUBvF\n4kkB69AUtkapqvYE+Dx/mIlLr7i9oc/efwD5gyj4Py4gN1UttmIF+P4EDSj6\nB0e7\r\n=crBg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHor9hLvnbPInQvtXqE3Wcv7Qu+0jXQ+gDp9BiLkHn9FAiEA0jQD3u6gQGk9htDeS+lKHVJmWeKQUYoaNnusMfKxVjA="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.14.2_1565717476397_0.9973601145996935"},"_hasShrinkwrap":false},"0.14.3":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.14.3","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.14.x","@creditkarma/thrift-server-hapi":"0.14.x","@creditkarma/zipkin-core":"0.14.x","@types/hapi":">=17.0.0 <19.0.0","hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.14.3","@creditkarma/thrift-server-hapi":"^0.14.3","@creditkarma/zipkin-core":"^0.14.3","@types/hapi":"^18.0.1","@types/node":"^8.10.38","hapi":"^18.1.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.5.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.14.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-VYhwbppvPRnAs8RSv3CL4MmFMAfAZCeAQ28SPFrbSoCdnZ7Hv/knslt4YoR/ZcWEPUElr2TCidu3k48MwBJM7g==","shasum":"1d64563deaba802a8f2c6ae0f38ff63360a865fc","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.14.3.tgz","fileCount":9,"unpackedSize":24261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdUx1cCRA9TVsSAnZWagAA8zsP/RXHJ9INdmQ/2lcoSk/z\n8lA1ee5sG9ohq0Nf9ITsBZ7r+U7z+2x3yLHnWP0sNJLkssU2qIet/30/7gAp\nDAtkymn9/44U3jxROuyrdPl9GaOd5g6KtTO43R9zVWP74x6h7WAKHG/AyfTK\ng+M2j02Th6a29/if+HM6S9ncn8oWhrgo9VYtYbs9tL5Z7hru8+T8XItJMfpW\n+kKycrNKgrtskXq4IxR+5HFkOLE6wGXBgHeGkqvbyj328p8kmvu4PPhmn44y\nGSJvlPGu+yxzX7w7OeASMEL3tHxUbkmacF6Jk9L0IjW6jMkOT6lofW9GBBWb\nz3kdIv7umOWXkqTzBYGd/PznmnglY1cXsF2CHxXCPCe7igEDfm79hfDvRrU+\nIopdUr2Pi5MQBd5RzTRH7XzOoQIvdlXBxiZ6SXy8av2q1mHRb1MRH0kE+o3D\nrb3+UH6tbBvtCdY1M6eeJegTbZQZ7dTsQCFinCX79vw1NgqZpV4+vI24cbUZ\nhcDWZw5RDXsD+ms9vMr8Ps5EJC/fN7aE8ZdOrSS8tApUsu+TY+JlhdGJZbg5\n84Xgt7C/SamBi5JJr7nzaUJonNpjKdzPep+XGZRTxL03JqyNmGehmD/uMCds\nSST1+lqmIGI9L555mIIPR3mCRxgPFFuNQsNa7TQnXVyTGrUI2yiKDGBN+F0T\nWIaq\r\n=6+Zk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID8H8LAyCMwPJANDx3MOS+13ICZBkk6fol0h7tJC9Ue2AiAypDpOV6OOAspxb2DKS3m1XZjnxhciCY/U5mf1XpFCoA=="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.14.3_1565728091357_0.8629333845408507"},"_hasShrinkwrap":false},"0.14.4":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.14.4","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.14.x","@creditkarma/thrift-server-hapi":"0.14.x","@creditkarma/zipkin-core":"0.14.x","@types/hapi":">=17.0.0 <19.0.0","hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.14.4","@creditkarma/thrift-server-hapi":"^0.14.4","@creditkarma/zipkin-core":"^0.14.4","@types/hapi":"^18.0.1","@types/node":"^8.10.38","hapi":"^18.1.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.5.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.14.4","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-/MvSnzoc4MWvVfAffJxhhWSZejMoOz4rB9UNUoN45lpPLLKGrFJdRkK1er+d7nqOBFVpH+Agbqkm3B750H4hMQ==","shasum":"c4ef3fd3f4812e16d976651bc6bc2048c57def68","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.14.4.tgz","fileCount":9,"unpackedSize":24261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVi1gCRA9TVsSAnZWagAANJsP/0rI273Ii0WFxu+VwrZU\nm/M+Wv//kcvN2RSI4tEyyUr6jx8cysTw91HVaapnfbMphWpNZGSdFP1nScSD\ngAs8J47o36WsThR0J8RqvHmnAKT99J2yPYAgQRSysV0TBd2OSpxs8m0uje/E\nbXMfgI3ImVwx1qakhwI6EP1NcGe7Imn1kuorm1F0c55ftNOk+lXexCSX+i/3\nKmHOmlyuRBgfuIcRl8KQMJpEw5Tveacep9nCc9RceXFay75RBd72i1aXLi6m\nMUfWZ2K3sd00fycdGTWOnmSMfVvf0rIw2HkqTsDigUM4C8J1QZNJU0Oh6zs6\nVNepeLyIVRYS/wTqvB9pMkvJp8PX4JH+Zf1goraoe4rEfROogRqUO5xyBfUl\n8FwqtmLX4qoV+QjHCy28SrukREWFCoGRjf1tsP8s9slfDb+vWCXJmYYHTiwo\nt/avVFCMzS2HIcm89yk4+UQs4jSDodtO1ImASK0F86KTNRQ6Iu9I6GZGUOM8\n9vgggtfXQdlOyWkBaYhV9qVLdknYgh1fLFv051xy0oqtycfq/giaYeV6agLw\ntzRoB3y5FCUfd1g+IftPq4rQZ7f/ayysTLzwyh4XLW7+WsN/o860lMQr7zJO\nw3e36947WXhuZtfZkJ5zBl61IGZMi8qdavBUTYc90gAw3foQhduYKnf0piHH\n8RHc\r\n=agCc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFzOISdukUy8bKCliSq+ZHK0vyTQjFB5oXnwMFgJjCfMAiEA/iZj5M4/HQsX4/jgPaZpurYiJFIYPnollW2EeNo/ZfY="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.14.4_1565928800061_0.7700049388303225"},"_hasShrinkwrap":false},"0.14.5":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.14.5","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.14.x","@creditkarma/thrift-server-hapi":"0.14.x","@creditkarma/zipkin-core":"0.14.x","@types/hapi":">=17.0.0 <19.0.0","hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.14.5","@creditkarma/thrift-server-hapi":"^0.14.5","@creditkarma/zipkin-core":"^0.14.5","@types/hapi":"^18.0.1","@types/node":"^8.10.38","hapi":"^18.1.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.5.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.14.5","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-ry5o9vqoR2av/836YKeBy5lAD17o9ZDS+4e4Ri/Uq03QG6yQMlTqHB5cId3mL2PdI1v+kGIWZvqg2YaNG7Bz7Q==","shasum":"7311380d33da7a28833d643c9ec59edca300c91a","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.14.5.tgz","fileCount":9,"unpackedSize":24261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdXrF7CRA9TVsSAnZWagAAzggP/2e38Dc/d4ilmh7AZelz\n0rGeqqpHMu4gZZy6G0RsXm5jd/2i9TSiAxjhGpPZhtPfCkfU9iQCjUtFYaJf\niiZAGy7ECKABUYV1WveVsUtxsP+bSuMAJHu5YqzNPq/i0JMChXr+0rDL8TU2\nFgVgD5t4IJcNfQpR1HN6gez+YhK/Xxg/SQRSEKBZEwiaHma98pQkwSPx4GgL\nM5ElQ/tq6cUCZskxfZLfbgILRALiFNH+qWpEl6cFGddd58QWbU/kSy91LdUq\ns2ud4/qyEGWU5o2fR4pOTMiCQNo1U1V7zKV45OFPHfc9mSLmEi3zz2VpNthj\nrCekjPl5gQCqMLHsytPQKvuXnzFqbjuMegERabP7bCqUyCYZHCIEujmwEiTW\nR8ZN/Vz+VQusCRkRYu4oZbK0YOIw5WBmgfGL56rfOctDQ23tp+tfC1WDYj8w\nJEFuqR7FTpwcskhZLMBNBaMxjfGvW2mttIhP7ouOL8uJ3GOSGubz3e6znhqM\n4jQjR3/e+9jN5j+9F/f5IGfi85MnGpVhK0QPfOPgKIOk2BUYaVvbTAicAuDE\nmk86UXFBS1fsk22A4R78q4c8VyUiwDF/W23iOrxGeaKA1g90jN1pLMDRrPg3\nguK7wUjfy9qQaBduHiDEUUbZAWYoQrVxeD2jxmZ+SbK8VXRSknEJY++hiFkk\nIPP0\r\n=H14e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7JpNjZ6UXKgxP9ePXcWJVUZcyS3FC54yT/iS0mMjiSAIgUPb3VpjHKK+5eO/L5YC87WYhV06ugUo2i+BVKG1J6yg="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.14.5_1566486906554_0.8558841027422417"},"_hasShrinkwrap":false},"0.14.6":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.14.6","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.14.x","@creditkarma/thrift-server-hapi":"0.14.x","@creditkarma/zipkin-core":"0.14.x","@types/hapi":">=17.0.0 <19.0.0","hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.14.6","@creditkarma/thrift-server-hapi":"^0.14.6","@creditkarma/zipkin-core":"^0.14.6","@types/hapi":"^18.0.1","@types/node":"^8.10.38","hapi":"^18.1.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.5.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.14.6","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-HuXCcSWN/J6P/IlSFTQg3BOjcgDsX8PgDwdATz2vuMvIblCtS6+UcFtB1wXL/pu/d0TOcwiTSNT0LwcBtWx8EA==","shasum":"5f90af16175fae61044cabfc0fda854614d7a48e","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.14.6.tgz","fileCount":9,"unpackedSize":24261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdcVweCRA9TVsSAnZWagAA150P/1I7w0WL4GVqy9sDqFRO\nEVKkdcWKxBTFevJMFrl07nyYvUk+XBq4u9eCQ1bULucTD0ZvcBbkunUTCP52\nzJ3N1V7v4PF/GD+axEUDGvGIljkHMsJJNBWWqQD4QYX89MZj1ketZrqpp94y\n1mdIYlu+C5jIv8FqXjL13M/JrcGCSJlZuoBayy0bzxzuQLtJx3AatnbSvIWt\nSiQUenvJ/BUhXjf30ph9rcBDfhCfSYpVDxX8a87RD5XguIr6111MVFyud2fU\nUoPuCoMYrRM1Kkn5WvZ+dTEA2FTxqJV41fgpJlhoaxGpG4IcgNi9ejdIV0Qe\nyZFwjzWh8MhYboPDowa2NA41oyBcJypLANw1B4RS1MJSk7RV8TCccaFhq+zX\nQQNKJOa3jatYSvkqO0dnPQmO2BsfkJfFdRCxRCqk0W0plgTk9ydV99tLaCAx\nehqNkEvGYRo53zyr9C/U+VXXWklxh7SwhjKPaC0oj9rtccQz4Jy2XdeBVPic\n14mWRi+u/kagidVBsuu7j9yPPF2+tQSp214u118oRdBoMBx/8CzIB5ldMqOC\nNgyoxROebALyE0lFB6HpiHaQ5TVbO1QP+V7b/kMEhXmuffjQnQjHx+fj01Zh\nk2EHVGZ+xZmgXWOd28oYm/S//+FasRpEAIE8Bwgm+i9E2wW0OXZiB1O9XdHV\nrA47\r\n=2ls7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEypZLfUF+noHasGJ+19ZRKcqftqI/975PdNY0XQhZv1AiB3s6ldEIRM+R34Y00YJVPHlVpwkluabFFO9kgyJlHpow=="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.14.6_1567710237896_0.9155691216371591"},"_hasShrinkwrap":false},"0.15.1":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.15.1","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.15.x","@creditkarma/thrift-server-hapi":"0.15.x","@creditkarma/zipkin-core":"0.15.x","@types/hapi":">=17.0.0 <19.0.0","hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.15.1","@creditkarma/thrift-server-hapi":"^0.15.1","@creditkarma/zipkin-core":"^0.15.1","@hapi/hapi":"^18.4.0","@types/hapi__hapi":"^18.2.5","@types/node":"^8.10.38","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.5.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.15.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-Pp8yTRjW+GFKp0OMTt/ofBTTUURvcDYYo1dTDkVWzmHD6SLHl41BV1xJS7vBcAw3eq4kyVOGR4kM04WufrE4JQ==","shasum":"9e188830d1ba891d4eb46bdfb21cc9e0e10b5fb2","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.15.1.tgz","fileCount":9,"unpackedSize":24279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdlOWzCRA9TVsSAnZWagAAbOcP/iiGhHlXRc1HNE+Sh7q1\nsbGGhLY+BbqEvzqWbzbur+FWL6URSbwP9JCA1AsJ44lc3ndQlQ/6ymFX8XEo\nNqn5ZErAIVXyc1QSLocYhh36mXEpA1gZYrmT2FZutGw+rwnx40geDE9tsSll\nto/TxBqz7bvlTXX/6X5XlHWCGCVFe473vnOB5oc/FXWyJxmnkYteARMrwjzJ\nMY/bEvgPBv8zExlERT1A7poPAjzqaEFpKniQgKjJltrI7CywzIudG+HW6n/5\nGAN17wfu0a3B9EGKFEH2plYJz2LD0RCVx0RBjxNqU30ZtBKYpmpFuxUwMQMn\nH323yALLpgRSpuqcdjhTFgCS7Hl6BLrznobePw1gH85fNXqmRcRnQiMebCML\nodh1I62Q0DF0X0d/BXfyZp6drKTo8d57MVh0cywVN1mxtyhIH3iPGuogamA8\nUhp+T0hdPm0XJH5fmMbggt1fGgvhL8yKMGZxoT6pNUVyKTlUZFRgX3VRw+QV\nc2G+N3BggRczqFhstuxfCg+44X6JmYA9j45pb8sxMWTpWPj6DF6xmr+zMvhu\nRRTSpsSLnEoNfch9CYCHRwJ5QACxN8RzIz0BIdrrWBOIcYP42IsCCzqGWvuT\n1k+Mt3SnmS6SWkp4twY25Duhsn8EFHtLWWm4Ag8wC5gPvGSNO1jG7gRJHD2V\nqdB9\r\n=wz5t\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUCWjPxGQPGC+tmXIbeqZNs585Zz7ibVFu3TZbqVDXPwIhAIR3sIc7NARAqUVyAWXDg+gWJtyRzorlKH9C7gXc9aFz"}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.15.1_1570039218550_0.26459100423341075"},"_hasShrinkwrap":false},"0.15.2":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.15.2","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.15.x","@creditkarma/thrift-server-hapi":"0.15.x","@creditkarma/zipkin-core":"0.15.x","@types/hapi":">=17.0.0 <19.0.0","hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.15.2","@creditkarma/thrift-server-hapi":"^0.15.2","@creditkarma/zipkin-core":"^0.15.2","@hapi/hapi":"^18.4.0","@types/hapi__hapi":"^18.2.5","@types/node":"^8.10.38","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.5.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.15.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-M5PjStEyThTaw7495f4yMHYyouj913kEIYbjZ4OEPkKmL4O8Aj+hP3dIXWQbyKkghLHtA6I9Ae+wmdmHk/Kpvw==","shasum":"44feacdd915d70ba4dd41a16c69b4d4244f382d0","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.15.2.tgz","fileCount":9,"unpackedSize":24279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpNIgCRA9TVsSAnZWagAANZcQAInaKZVWCNB5Bc4IXlJG\nffWl4HKNG6sNDQuO9tIgfZfUKT4ItJF5Hyfp+8yL9qVDAzj65gpA74Ufh3p3\n1heAvISZ6Kew0Hr2Qbq3ECQYByzkkvPTqHoCTkuV+vy9iGvUsGqpppMzocYX\nZUsbNsw1oIzmfa0KGzSfefPkaaBxZxfPx4xnYozHurs8Rqz7d9BmSdHUy6Hi\n430qL0Bunp5J2IiXb29Et0YWQuEF04AiWWn/OEIJi+qSYuw1uQT2HqWKiM3X\nmM0BblZyebBTjqDvz99OSFc5LlbE+XTLVwz2EQ1x9fjEWorpc4d8Fo6OG2UI\nY01Nu7a2fxmJQgVUFxgppwaGGBhkBvwWwCFA1Y635/2Is/3tLUp7ygMvifme\nRhjCg9Y+r+bWM+jeT5k6rVM7Xn5qrJATH5VOC8z458xUzSIjDM2pNiJXWlEi\ngDjdCi+Gln7OPtP93abaTlir7kIv0iE7evEz4iQpY9VVBlzI+QQ1NjtKviDw\nwYIu2CsRy4ySQL9SA0/3DthdAeHbRWE8yWfwUyqKsTtvjBxealMdb2UMvQHo\nXkr5FI0iJuPCEyaeVmRepUAOfEDBa9y81/inTpDaf+Q4FrRMNLN8eZ9bC6pp\nju+Ys1N2nwNRyFnL4MRCH6p17QuzUUBvKxfVUtWWWiBawd1C391nVKZdPUxo\nNLPq\r\n=7epZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbjXofFdoGHgc3jRPmF5frJHs90OJMhboCN7q30dS4xgIgHXE/NSxRkk4k3geGWbRQ+/dUb8XDNzqtCg77jIaNbvs="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.15.2_1571082784102_0.3006406641479953"},"_hasShrinkwrap":false},"0.15.3":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.15.3","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.15.x","@creditkarma/thrift-server-hapi":"0.15.x","@creditkarma/zipkin-core":"0.15.x","@hapi/hapi":">=17.0.0 <19.0.0","@types/hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.15.3","@creditkarma/thrift-server-hapi":"^0.15.3","@creditkarma/zipkin-core":"^0.15.3","@hapi/hapi":"^18.4.0","@types/hapi__hapi":"^18.2.5","@types/node":"^8.10.38","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.5.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.15.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-QU/Oy+XIjaZxbx62AlkfOEM5z18wQj1Wx/1EWhmLfjCE/V+d+ZImDAjavFLDqaxQFgPHibu6udI6nCOIiDe7ig==","shasum":"5782267bfda3802fd6fe605365a61c11769c43fe","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.15.3.tgz","fileCount":9,"unpackedSize":24285,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpSN7CRA9TVsSAnZWagAAEF4P/Rp8m+88Luiw0W8zTzn+\nP6aBm99mY4yB7ezvmNnclJflCPRBA5VVkH85zOlF13Jjqdbuu5EcetE5jRS3\ndMPIZx0TGAZ/4gbOdUW+jeoH1ov5jNM8td/MJbtoCOU4juxWZlvYqfjQx0Z9\nbvidkjfUN78sRdHVd/hdnK1lGIYk7h6+jKTAINT5LVDYFjjw+3iSfAG5h7tK\nh1/sZKZWSAfKDnS1nW4emXKi634+FRy6YG76o/GBT7j8KpojfaA3Bsn8buxY\nMZJvI7K4T4amAcPOTXOWilm25w14+M+SDXxo/l++XjMDG+b1omMULyEOx+nx\nvMuRJ4hO59y0JChFX177ESy7a7Dky+Gud+wukoKn+Nh8s/UxtGDG0fIvhYmd\n8wFVPRfaE+hFzunwZPRHcvZ8rFzmVh6wlRahFNyN7fIHXpX7VD6YRdC4TzNP\nkmtNuUj3XGZUIn4K1UiYd8fq1YMBW9DCIXwpvzUJ8DZFrOswh3okRhciqtVk\npe0YWFSOImVy3BpvN4cskOSNBDGRx346tz3VY5RkYrYZJRC+zgkP8ft3GD1A\nFsawcbjuo8szKiT6hA44Iq4h0Qss8ghgIiCW3l4skwLafduEx//5FFxlxsVR\nj07RhNDE5WdEAueL9MJGUn47NYipiLlyxgaByyzlK0cOsoRmvMnFGNV0QAtq\nwxaZ\r\n=62mD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDycU1hcuf+aPvXimQLrBsmD0d4j2Fgwafdl1blHU4JwIgaBA9xEBl4F2hop+UwufOAfkDJsQ93De1y4Dz50CxWbY="}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.15.3_1571103610761_0.3375831959118012"},"_hasShrinkwrap":false},"0.16.0":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.16.0","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.16.x","@creditkarma/thrift-server-hapi":"0.16.x","@creditkarma/zipkin-core":"0.16.x","@hapi/hapi":">=17.0.0 <19.0.0","@types/hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.16.0","@creditkarma/thrift-server-hapi":"^0.16.0","@creditkarma/zipkin-core":"^0.16.0","@hapi/hapi":"^18.4.0","@types/hapi__boom":"^7.4.1","@types/hapi__hapi":"^18.2.5","@types/node":"^8.10.38","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.5.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.16.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},"dist":{"integrity":"sha512-5cSXhROWpdoch6Kl1iuh+bX8Vxt68ulqztyQnX4hvvAfqxsTAGrxqP7FLhJFIveKOBqfx17ACRlDU1cNgFB10A==","shasum":"4236442383faa5ceccf9f3c0b1f96bfebfb51d0e","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.16.0.tgz","fileCount":9,"unpackedSize":24324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeJ3ilCRA9TVsSAnZWagAAt9wP/i6E5r5ZpIQEBn1Hi1cW\nmsiMcS+3ZZpxjwvDACurT7cV4dNz+yiBZfKm2+gaWDAebl12sWaNjJjMAdfg\nPa0gbrtPhrR7g61uRemTNhR6f763OTnw2lbAPjwI+glil8prJvMoTr3Ty+zY\nsXz3hkWW9N/DvHM/2Ca8wtr23cEiIq3UQ0oXuuPmrpvnvocT0t7QgTC2U1j+\nbZJDjhf9ggaw3OUyL5bIgP0q1kKuLi51bfxUZ2pso4kmSICfqohMcFzzai8h\nJ+ybnbb1Uw+K43d3ybFnvYcMJE/ocxNz1RlJVvHI3P53CqBMs787qEFlqYYt\nwVLpB9C69K5murtPuFhGzYn6EPXVmvO+25UPJCiSgdoWFkKDUL50mMMg653b\n5u8z6wxicJ00+SixQbM9/K3r1dt+exRrRzWGCPsylrDd9sLubheiWNwstrux\nh1OOKmt8m8YJXsNdp87YEgqq5AalDQKhn4wePlETIziuXhOI1Nm2CrAaOEz6\ntgnwZScPWG33my3MDN0Q5f5BKhjpSB1b1vDGE4tQ8sZZm1v6gWNZyPrdHnd+\nURumyGr7Dblp+ZuIAYGcNZcI6zF5LqIpKt6Iz1wm79ZNpOGztFP4j/lDZhjk\nL3F0GJ18FxdrUI9xrohD7H96mplZ0Nsg2j01wtguh+pEIs+ufEkdn/ADM0Li\nRohC\r\n=tmmX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKC6XS2fEupxJsdqJ6DwEeOLueJY0Cpd5SPLGaFceuhAIhAN6U9v63905dHEtQdNLR56qw2ADRPJNeXj7gQG7i00tY"}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.16.0_1579645092839_0.9364803991311976"},"_hasShrinkwrap":false},"0.16.1":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.16.1","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.16.x","@creditkarma/thrift-server-hapi":"0.16.x","@creditkarma/zipkin-core":"0.16.x","@hapi/hapi":">=17.0.0 <19.0.0","@types/hapi":">=17.0.0 <19.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.16.1","@creditkarma/thrift-server-hapi":"^0.16.1","@creditkarma/zipkin-core":"^0.16.1","@hapi/hapi":"^18.4.0","@types/hapi__boom":"^7.4.1","@types/hapi__hapi":"^18.2.5","@types/node":"^8.10.38","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.5.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.16.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"dist":{"integrity":"sha512-KNgko9b3Kbp01QwApYuhQ+yipjM1aQs8/4Lf0sMaNNAD6ufeaYiNJgpSMYryxegGdUokasz60NVv1NITzr27pg==","shasum":"40a55b61c0d9a5e526529c0814c8cf25773a6996","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.16.1.tgz","fileCount":9,"unpackedSize":24324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezrjtCRA9TVsSAnZWagAA+B4P/1mqPzzQyX/kgTkYf+S6\nNSsq3qUCQJ9YC7+51Z4O4nX11/3m+Jq89Cw6QNNJA0wH2+TH8Ho8+dSHI6mU\n+yWaBdB8uR43fdc3Nif+qPFWugA55YiYFKF/SCDtwy7Rhb6PKT9egnMgZ6gI\nbna4c46K/8Cn87NKloZrE/5MwVHcI+Bt2zovhTogbl01dFhtnZvqjK5mRkf2\no98+CfkknIWeUICN1EitDg1AnaePOZmXQ0qTiNpOqNFVBwpZdbE9o1ER7lI7\nBJZFCeUKi8Y1kNXRMuLHAAilLgmwyP4J2ukk43GAgHmaKK6xZ/JIWahQINaY\nKOMIMg4b2GBLdJYx1tB3/4vIwXwtx05e4ISqhcrAvIqk5RXonE/Nd2fF7/W7\n/n7E1CiKl0O8rqCALi+eKXt1A4veNiGjV0gd6o72JHin4wYVABjsLxBmTagw\nx6W/wKpk/GJRk9brs4lh7hdUlIHbLqiFK1vt2f9nvV7KM+no91PVWVUwslii\nkObdeBJIi1SjUPO81oiwIOJt5D7heMwAkA9IReApZEfzXL709sC2GMZC5661\n3gSFAz33TUO8jPmunMukWU/qmo5RrPSc0Jsfnz9ksUT0DVyXvffNMXQYneWT\nRfEvWqc+wavA1KGZOMCiE3cwOgGlR5eKoX0Hkp1TT/b+NF3qQJVvsP+FD4MK\n222k\r\n=9LTS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1OuwMDt8/QqA38EAtgxQTzJUX77bM6DSjHKBxtYyJLQIhAMYte1Z6HrnPnh8WS35TY2TEbGE0J2ZmED+nSGLz0YZr"}]},"maintainers":[{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.16.1_1590606060650_0.8376019885668065"},"_hasShrinkwrap":false},"0.17.0-alpha.0":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.17.0-alpha.0","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.16.x","@creditkarma/thrift-server-hapi":"0.16.x","@creditkarma/zipkin-core":"0.16.x","@hapi/hapi":">=17.0.0 <21.0.0","@types/hapi":">=17.0.0 <21.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.17.0-alpha.0","@creditkarma/thrift-server-hapi":"^0.17.0-alpha.0","@creditkarma/zipkin-core":"^0.17.0-alpha.0","@hapi/hapi":"^20.0.0","@types/hapi__boom":"^7.4.1","@types/hapi__hapi":"^18.2.5","@types/node":"^8.10.38","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.5.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","_id":"@creditkarma/zipkin-tracing-hapi@0.17.0-alpha.0","_nodeVersion":"12.9.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-P6+Tm+pYlGQ+Rs8Coo5StxzBsW4vUkEHr4J3SqWjGrPFKg4jV32cUKzulZ0jl7XKQ04wMkQyS5Dx5mg8IblOlA==","shasum":"1a4aaf51ec8f22a6df7d0db9ff58863bfb43327a","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.17.0-alpha.0.tgz","fileCount":9,"unpackedSize":24356,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZfNgCRA9TVsSAnZWagAARAkP/3k0/1Spwncef8FQZuwY\n/mX4hbbLRnkzYhf8lo/fSQM32pj86Hlk4dtjR9HAXWIE9yu1m4HXeeHjJcw9\nRhZPkfic+LwsVVnZGKitOBBYU9DuGjZ7HDcPEjbnpRYgsHbeJCQOXnmSHyQL\nTH0Lho+8Q2g+PRDLJfhgyGbYjHK+AkYnKy8wGHD7uYxnOJepl3ov4WaUWYTF\ntAzJlQhbejUW8HWEYUbEruk/YxeTGlR0YhhXdDSWnIJORzfMkWhBrMVVT0qB\nddmZLOmR8AJXcdyKN5ON4lYP+i2zCEFx7NHPjXH4DIMp9x2d3SePPFEl1p0W\n/syHq9vlVeQyvYjrMtjbUgqBRQCAtE7zPbM2BR9ZM4inZUZxDlHQAitmAwah\n1KFmoCNKGvNWNE33wYwozhQo4zyAhoS4/a0Lu6QulwBbpbmQea8oNNydOX+w\nhwhzZ8F6hCfpe+K/upsGdvV7Lmzx77S8aMeX8rpAU2WRCi1YhZNedbwXqd72\njeN43uPMMa4ht81MZu0ypRaPNe6MXVWREhRUggEIUkOX9Q8uHNA88opO4Ja2\nu/CbN+7BIYcsyKOgd6Hyafg72nm4Lvcki+2iaPbWCe962+jcyOKV0r/Gk5ae\nk/2P0X/HD589eVLjLDYGqF0UUuDfTIn7hInglQjEla2HIFVapBlUIEqeZHYt\nmcm3\r\n=dp5o\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAI3fKx/1WRyHp5sfueFQte2aLq8SAPicW4xtJ71dpFzAiEAxfgmoBLABYqSByanNNMLZd2hDSlpEMuYNzquvg4DZvA="}]},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.17.0-alpha.0_1617294175527_0.5613332392449166"},"_hasShrinkwrap":false},"0.17.1":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.17.1","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":">0.16.x","@creditkarma/thrift-server-hapi":">0.16.x","@creditkarma/zipkin-core":">0.16.x","@hapi/hapi":">=17.0.0 <21.0.0","@types/hapi":">=17.0.0 <21.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.17.1","@creditkarma/thrift-server-hapi":"^0.17.1","@creditkarma/zipkin-core":"^0.17.1","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^8.10.38","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.8.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.17.1","_nodeVersion":"12.9.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-YJqOROQPK3FOHabHj0CxLf/r4cKUv+xL4ZUE2i5+Y2cOCEWx7CAqzAxt++CA0dsG/AOzWG/+XYjEfQGJGQBMvQ==","shasum":"4a772aa2a73b1cfdf9c0ee7b8591c6ddf9587016","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.17.1.tgz","fileCount":9,"unpackedSize":24288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZ6nHCRA9TVsSAnZWagAAPHoP/R4tFKClP9NI6Y+COcfQ\nqScoCOFcjg5M6DlTunfPkQOzu11Iqcq9VuHO88ulHX9Ea46mu4idqf1dJS8V\nju5OHaz1bpzxuZsUV1LNH4y0zE1+pHPjV3WYfeRjxu4OAKQU1PAiCtf40ewV\nveurJD2mCloV0KKl5N7kDIuhz00iiKkQT2zj1pWdMpnuYfVI6GsZrI6CHnKz\njrw+tbeSM9BlCIn683DZpnHOMTvK1a/j1jwGwbSUrFY2hh/BDu/R8VU3vmx0\nCs33GiUbsXv2A/uCpI5CXT6nmxY0CpvP//3AeL7C7hZZOGwtUgQMmj+rmaag\nH+0ljLecTuTJ+80/FhMYQwP3gLJ8+BTZpudPBobsZehWTc+958WhcYf0Xqja\nNvkZWXnWXUlRWfzkK5Q/A2pIi0koV8VtCmKFk1gUE0GxZH9KmN9c634gNrec\nKZM30ICmEewO7uOfkeMmUJ8Y0BC/R1leBUX+XdYgaKicwLnFCBGVDHUvpIGE\nLcenEqVV9+RLkMxkIOFtintcaKOuqP9m3cIDI19a5MjGGluhnw7ra72tn2XO\ngvxqLQulwGHqjGmSTVhM+prKQby2WydRaKmZ9kEqAQrc92ZK8An81Dggmv6e\nftKR0JUthUJFA6WcSF27Gjg1BxYOa/EtdAwx6oxhyrgYd2cw6nYQtuAnkl+t\ngzSA\r\n=xQHB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDHwyzjlteFOAb5b4b5+EoQztgY+7GayhygBTO4Y/tDAIgWGDO2uxsUq9598wvw6trAEu+Sm4mVHJnvV6Fd/7eXlo="}]},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.17.1_1617406406944_0.8423842497836167"},"_hasShrinkwrap":false},"0.17.2":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.17.2","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.17.x","@creditkarma/thrift-server-hapi":"0.17.x","@creditkarma/zipkin-core":"0.17.x","@hapi/hapi":">=17.0.0 <21.0.0","@types/hapi":">=17.0.0 <21.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.17.2","@creditkarma/thrift-server-hapi":"^0.17.2","@creditkarma/zipkin-core":"^0.17.2","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^8.10.38","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"3.8.x"},"_id":"@creditkarma/zipkin-tracing-hapi@0.17.2","_nodeVersion":"12.9.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-XD7zYrhT7tt7dwFsC5FgYaq/UjbR+uB4VggYC9Ig9gwf/u4hZFKWTSgB67MdJqzD+UQYS6NcBTyIXPLzaaFS2w==","shasum":"c2d02026ee67ef4d89fd1a0fe96f6685f62856de","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.17.2.tgz","fileCount":9,"unpackedSize":24285,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgZ89sCRA9TVsSAnZWagAAy9gP/jWUjqXYmy7lyl63EPlv\nUQEZLq8y/uWWOD8KqF3Zc+qh50fB4l1zGBSTJuQPHadar+P53I7Lkqdfakv9\neMfQ+BCwmQiIrtPmGhnMydz18aYk4ynhspvfluate/d09wOFlgmYZqWtxJX7\n5LPYKr51oD438wgzwEv4avDKsZZzzOHiskz5kGtNqY/nZFwZi57vinsQJhnk\nYWEahUJM63C2p5HC9BWqRynwgEFnRAgK9g1V3VMsMe+Kw+iT29YU6dSk2P88\nhfTBQ+NXh/mgJayntS59T3AhEqYcy1YmHObRXG5kl6zMbgNJeJTvX7oNpQ3R\n7uNgwwwc1nyE66GpADwA+u/h48VjGieq+c8sIZFSH1042GhTNHLMoEQ2ynkK\nDOJo/MwbLrfCot+B+otaS5iYG6gSdPgodaqvAJv66ZVemzLk1l4aoBrVm55P\nTZFuCcWKfHD79uVDX2xM+Aonm7jvYwNuAMCCLdbKvwkvhOacoWi8ODGwekD9\nnvUvW2SKy35B+hqhMCHP6NDAtJBjDRyymIbJLyQ7XRzIGL9Wf1jaPs3lHy53\ndvHNrXnT3m5nUVAcetwsRL5PsQhboxdSIHjrMsP6a2wyEtbCPzMlPg7GlqXL\n9HZ6ZfY6LlFZqScqE6ONERgnEbb0IVBT4bPHU3lzAkF6ZdSCgX9toCIoozUg\nG7Ax\r\n=SzE2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqh0golm8F2yt9upjKJ+oEJiB4D+8dDWU1sLdGl+AgNQIgCdWUp0hM26QrLF6LpWHAXscgb9pUhC1AqgUIoespG1U="}]},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.17.2_1617416044462_0.5359564864933299"},"_hasShrinkwrap":false},"0.18.0-alpha.0":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.18.0-alpha.0","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.17.x","@creditkarma/thrift-server-hapi":"0.17.x","@creditkarma/zipkin-core":"0.17.x","@hapi/hapi":">=17.0.0 <21.0.0","@types/hapi":">=17.0.0 <21.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.18.0-alpha.0","@creditkarma/thrift-server-hapi":"^0.18.0-alpha.0","@creditkarma/zipkin-core":"^0.18.0-alpha.0","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","gitHead":"1a3cd5ca4efeb0919049b47c3b5aca4747ffa0b9","_id":"@creditkarma/zipkin-tracing-hapi@0.18.0-alpha.0","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-N9mIOTXPz0tLaC7Xy46aTQngsy0hbGleEkmprowy8sphkdTa3ov03odixen4fiiJYuEG2QXk82YTvPn/4Cif6Q==","shasum":"09232d4ddda9badd22a40c8e44da5fef3a169b29","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.18.0-alpha.0.tgz","fileCount":9,"unpackedSize":24991,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+hg3AVaKgCxRpQ3pVUCzZrCb3KldzzX30tBQG3mbDQQIhAIBmduK7jcnexRa1Q5tmAQn+jp2tsz+IdCKSzRU3ki1m"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifobtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmruTA/+MIVe+whG8yHF9Mcn4Q9SA/5IzGc7N1vo3D/goalVtLVJWT3f\r\nhlll0Fon3EswRkPV7KN9lK3nZ5UM3x/f9sZNBFCLv1ifnqxWV3G/Mrrnup9/\r\n6ExbRxZl4s0Mb9BOjxVcwfN1hLpwTzbNjI7DWZLdLPksNb5NDWAxL0rJTLUD\r\nDcHWoM/SEY8KEd7fY0UB/qJopPe5hFZX39PkQyNuntsV9Ht2oFHc1+CnOfw6\r\nba+VPZONrwvCALUKj99TtUSQgLTRAGuFCY4MYGIoR/IGW9nr24qb5IkssSHU\r\nzqhNuSfHigNoWujxzYmgd4Yd/noH6JicY+yCJRDJ4GIPDhUVwJllR5fQK/xL\r\nA9qpPA3rqRgkaBH/4a8q3GRPTs0t1wtm/aL/KHU88eY1jvHj+UtTQ2+aMXtk\r\nDMmNm0uuZNLuaUBE11Tdf8HJqt2dHKEdAauB7Ktanf2At/ZIb0sD82X9jVo6\r\nvekY4nm3Vg9BLojHlqKb6sGtgJ17EuzXbDFuZZdRdyam9Sf0jbIorpypmfyA\r\nEM2Dy7DaKcElrvf0IWLmvJ3blL5MQIkaRh5KQtwe36toDeLtdp6Cvv2X2gxU\r\nimd1ZPMlFuw8tRNgJhhnyDj0//R+6+KHu24mj8QUvdkSdz+BbJedfKDpHitv\r\ntVF2dD1MM/LkByDCbUr1MN6hBwt+tPlZv4Q=\r\n=yKEn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.18.0-alpha.0_1652459245707_0.8487171399711206"},"_hasShrinkwrap":false},"0.18.0-alpha.1":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.18.0-alpha.1","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":">=0.17.x","@creditkarma/thrift-server-hapi":">=0.17.x","@creditkarma/zipkin-core":">=0.17.x","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.18.0-alpha.1","@creditkarma/thrift-server-hapi":"^0.18.0-alpha.1","@creditkarma/zipkin-core":"^0.18.0-alpha.1","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","gitHead":"936f7fc6ccf32ea9155eb008004359ac23343b6b","_id":"@creditkarma/zipkin-tracing-hapi@0.18.0-alpha.1","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-bkiGAWUUcPyXa4cNprhGqBoO6qStYLUG/DwowWllTR8MIcpsuDdWSxjOFBvWz63YIneg53gFPjohhf4+iaFT+Q==","shasum":"be210e2065294009df642626fed80d16873b9515","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.18.0-alpha.1.tgz","fileCount":9,"unpackedSize":24989,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID5KvfCpfP2hYc1Qe0S+Ezqni3eVOSVjT6LN1WFZMye0AiEAqDiCyZmvvn0YxHoF9tVQeZNfYzfG6RLFdEJqRS/R3t0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJignQbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpu9Q/9F9+qTfxsDyMHHDDujvy2UOdXkc43HzUKKZYUMjIoNn9acQ4H\r\n30eoyhBSSlwLgIrix2OiiHiXPbQtdFybgpo/mY45Gfg3NMON4qFmTS3tZI+b\r\nW5LkTFtTDZ1hZIK0KMznHy5Q18RmTUorktYpwbklsLGU0vXkumjA5Qi09JQj\r\n2LbhImdeOI1Wgnx1xMVqWlM4+d3aDlo6IcZv3LWXkcZFqc4E1PPNtFmXTCUl\r\nc+D4eMu3jIjjLqNc8n2/OpwPcL7i+IHj0Kh2YrpEFyvyaF1vbWIB5sXJdQs5\r\nSqm+BtB86B3uIB1xFZSgyate3Q1NrhQVMwa3wJDA00MIK1+Y3utgNvp4HwhO\r\nzzdkQeEYQ67m4wlcnP/GVBV3I+TcT2LawL9C5kcNW06+PA5+lqRQIerKgK/v\r\n9+xsJ54Hr8iTiD1myOjOD8tcFpp6IxJ1FPk9g3vkQCJtGY/FJDQdg0UT6Ci4\r\nyNFHCg29orF9eXhiE10Dt4E2L4zcjD31oQ+sj4MTiGLbIF8z0XZqLqkivjmy\r\no586qB9KJvu4X4y3i65tXGfTz2mpUYI/Kk2sF4SSIqbFHmEggGx8qH5qDBTl\r\nLjW9wJ2V0kWn1ZJkNJQdj6cAjaTU3o8oaZ2vo6JITkavxFT7TOlm6A0+fEK/\r\nzHK6ODboeoOnOQA32YqTCBZGtImWJ++mw9M=\r\n=MiXi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.18.0-alpha.1_1652716570894_0.14867594963789355"},"_hasShrinkwrap":false},"0.18.0-alpha.5":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.18.0-alpha.5","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.18.0-alpha.5","@creditkarma/thrift-server-hapi":"0.18.0-alpha.5","@creditkarma/zipkin-core":"0.18.0-alpha.5","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.18.0-alpha.5","@creditkarma/thrift-server-hapi":"^0.18.0-alpha.5","@creditkarma/zipkin-core":"^0.18.0-alpha.5","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"gitHead":"1eaa8fc1016d0ade8d38ac610eb497837a8be680","readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","_id":"@creditkarma/zipkin-tracing-hapi@0.18.0-alpha.5","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-ZmLH9j09nfJ8kU2avz6I1qPiHotborxbWO7wFeUtZb0RDdv3vKm7NMA/dU4i4HwpxoAUG7kxexraFVVsu6DNFQ==","shasum":"1d952fd1c4d627080322838fd9d23bb416c3d2b6","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.18.0-alpha.5.tgz","fileCount":3,"unpackedSize":17887,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDB3bYh5yOu9xu8HfY+x9LwmEKiQ5xaJW2T+dW1T8fHQQIhAOfnhzlEhcTd/4b3Mf7+WjEr6+pMJzXt4KynPzETi0ld"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJigrUHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWdA//Xz8zgmVPgJbkPVvlKpLnL/l3ZdoQBXH/KMMzjVHCmr/mS+Dt\r\n7T7FmnGemiy7JMtBo//DAgEGHfJGWHbJCSnb8mO6vhDJkjonj9MKjZTW3gPA\r\njTNnjCici3fucyn+YqEIljjS/x7QDIOrBYseXSHt4nTw5coJPb3H2/ipp56P\r\nXNgJOKwdSFDc87J26y1Vb5z5UhCTOYROswvrgNiZzVpgIDOIR59qHHfMQjow\r\np9xeHqaiJMR9DJFS1GzEajaTaFyYyvkbWR7FAmDkie/9IU8JY0OTcgiNVppq\r\n6wuDIRwVcay02Uivnbn4CmXD19fTLTECmjhcIsTYrFayDOnvnIRz/4vjc7KI\r\npc8DtA9EAHyS41FFTsdkSoYx5nrCRwOCQdr77bHiU5c7834eII2wgzZs/0dd\r\nGvyb/KmBkFDBYaQaRzju0yGvgQAMgkyt2qdl92wK7XDgs7LtosesT9jUNtaK\r\ngGQK6sIXdFTk9DzXbdKGqbCko0YVqUtiSBtiTVjqZd4UN0ltEvqohTIffKFe\r\nZYw9jSDxb5ol7VlXLeLHoNXo7frRiSmWlj6GVNLcRajm7+lnDbVP2Ws5XFQm\r\nqjBtu9Y3oLJsg1g6cXkwTEtEoRPkbkOFmNt1tLbCIMK3YV3D7OXcU7KlAPHd\r\nna7bsidL0gvpNMSLFExOtbi7vuRYK5sFhk8=\r\n=ppMn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.18.0-alpha.5_1652733191336_0.6539962925372118"},"_hasShrinkwrap":false},"0.18.1-alpha.0":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.18.1-alpha.0","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.18.0-alpha.5","@creditkarma/thrift-server-hapi":"0.18.0-alpha.5","@creditkarma/zipkin-core":"0.18.0-alpha.5","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.18.1-alpha.0","@creditkarma/thrift-server-hapi":"^0.18.1-alpha.0","@creditkarma/zipkin-core":"^0.18.1-alpha.0","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","gitHead":"806fde6a64d9304a38d5e90ee61c93c06432aae1","_id":"@creditkarma/zipkin-tracing-hapi@0.18.1-alpha.0","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-wjyf3GGWlnGC1mKeWcwrBsefVgJT/y4s9a5dPq7cYNVbaX/Muut3KaKvuACIy6qvPG67QnWwGSUwLHesM/O/8g==","shasum":"69dcaf9d00d424f954bf995810d39879af07de42","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.18.1-alpha.0.tgz","fileCount":3,"unpackedSize":17887,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDgDUzTQbMbVJ8Mug3FVKnncPUpBnXHGF+0CECOOvnxaAiEAmuDKz9pK3U9Qv8AjTaF11+hx/CYLwQPzBDdxve91Q3s="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihC+jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpvgg//bcfG5aBWZGgt782HeK49MuKf/QBWAPiuUllStRxEXBMr6g2j\r\n3Wlzk62KoKB4U6vrW+M+6YEViZkZa0HATuOejUCUszEEKKaLokK8nbf/0HK8\r\nhlg2oSUtHMC2/AO9obVqUt9zYNIIPYKMmKR6RNs/0yS4L8yjm60qRQrj7ARx\r\n2A2PWZmxyG0iYBi+p3QV400KA0L/kGRNXkckXAJjEILNVn179Chq9AU+Kn6J\r\ndphNTUmMrxU53ZHHNWuOnbhV4B9QjPHRNh2D0MNpHpLEl0aYlX08hJV0Q2mj\r\n3FljJZxxY97++R+ohGd8JFEHm/uuqtAQuGidu/IBb6t4G4avSXBmif6cA0/f\r\nvkgYhHs1WMFLoSj7BpebM+TiIzMGCKEN04BqC6QKl+eSF9nOmJhe/fEJPVH/\r\n4WKDWSKwgrRoypqN/Wg06Pf9kPumTHIOLBsiD0Yyg+JG5r655ccHfZMthvcM\r\n1O+mBWynPhWMAfmdGldXnrDtxhz1XI+9ELEckPXxdJCcj5UEF+Uk2WprJeGp\r\nqJ0l0vTnxBqw8DahzRVeLpNMuA6xgg11qq4rtZTjwsh8b4oW5KrAk0fqXhJA\r\n0dqxb0hq/sbmu0f6LD4JApPcCCSZaGO3FVaQFGU63XAn23OHJE/xJj9m5E56\r\nr1eRRmr1af7C7tsTQzLqH+mWlgU2aChv7IY=\r\n=oPSk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.18.1-alpha.0_1652830115419_0.02707104725590881"},"_hasShrinkwrap":false},"0.18.1-alpha.3":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.18.1-alpha.3","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.18.1-alpha.2","@creditkarma/thrift-server-hapi":"0.18.1-alpha.2","@creditkarma/zipkin-core":"0.18.1-alpha.2","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.18.1-alpha.3","@creditkarma/thrift-server-hapi":"^0.18.1-alpha.3","@creditkarma/zipkin-core":"^0.18.1-alpha.3","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","gitHead":"cca6d2eace0ca1cf84dc2f80a11a01fc99f0f625","_id":"@creditkarma/zipkin-tracing-hapi@0.18.1-alpha.3","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-ZpoXkgvby66lXplOeq+Yd//8bnxfyjUSP7USnHhlzySlxR6Nmks+KfDV2QAEmudQOfPVqB06BBh1icMEGmQ4zg==","shasum":"b5be10d205cdcbac8ad9e05dc86f37150e638f0a","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.18.1-alpha.3.tgz","fileCount":9,"unpackedSize":25007,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqjW8ub6DquvqJok1KsQSQhdZthANjoCVhYxOAyQF4pgIhAIytbTq3JDHrmeEFVjNWrSq7/Dg2der9OEL8nMFv5edt"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihDLaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoyzBAAinOvNqlThw0WiOhTtmwHfg3mLDUK2Il9n8OrL0NLsyGHo0eq\r\nfNAR1nepJ+L25Dqc4FuYxGcTjXyZFnpiGPMzYKyZsGADDfW+0I4r3TrYqRa2\r\nXj6ZD+NosfpMDU6x6hA29DdsrChfrIdWyFVj1vtkhsYnemoylwHTsR5jSVNu\r\n9v1G5GSn2p7960sbFm/nclPLP7tgpEKL3HezQYW5tOiw7fZP0MBfrdlEckK+\r\nsdsvih97EjJChSl/EqAvvSM/dakar6rF2R95YmEPseoRHvL2bQOKHl/PTlF+\r\nloCoOqq1z6fgCtsWGqIVOb9l2coN1FHqPSBOw68WXOTeGEO5fI0WAPQ5w+Cr\r\n5jhtOQwdoHHeBlMuc9fnr6DKNZWlNHkk8SRbCsrjAgKk0MN4NLqNT16u4Obr\r\neiQ+8ITzYudxot5iaL6ymSl0crb1EBqVWHzL6yyfZq1igX7dtXbcUJEm5t4l\r\nNjsYLskbKengUo4u0JLPXuDrPvZ2w2ZASAMaXtA6fvoxqYggKnjWeMn7zGR9\r\nWBS44w3nGspFUNKu8GxejajpL+u51f5vFNNAtJA3VLMt2DSGzsmC4yC8oFCc\r\nXue1FPU2XimZu6Lx8fLrsKreZ3SwoAkNuPPPg58wVeLRwp4Adj9jqs3XWsMJ\r\nWw4ny7FI8kGWwDihi1zFXznfy/32Z5a+fCo=\r\n=OG7O\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.18.1-alpha.3_1652830938079_0.46205286714303395"},"_hasShrinkwrap":false},"0.18.1-alpha.4":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.18.1-alpha.4","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.18.1-alpha.4","@creditkarma/thrift-server-hapi":"0.18.1-alpha.4","@creditkarma/zipkin-core":"0.18.1-alpha.4","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.18.1-alpha.4","@creditkarma/thrift-server-hapi":"^0.18.1-alpha.4","@creditkarma/zipkin-core":"^0.18.1-alpha.4","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","gitHead":"3f291032836e710508d829df5a0e2dd04a37b375","_id":"@creditkarma/zipkin-tracing-hapi@0.18.1-alpha.4","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-o/dfINajJEJ6SD3lQrpjlzSOSGf+ZqGv/pGLSUe6gUwIQXthXC5UHftmmnemlOFywWX8ERVYn/9PdbVsxEFdKg==","shasum":"5c082d56aabbe2bcacfe6d2c4837e37813627c46","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.18.1-alpha.4.tgz","fileCount":9,"unpackedSize":25007,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBDno0ZIlRc1RMJco8jwxVn0W4L2z0bYn3xHe3J/ZoG7AiBQq9UvaX+/DXv6KkfWJENaVTWIOVSmDKcaimwFxM/TLg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihDSfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSKw/+MR2WQOf3V8hUy2pp/j5GqS+tLXJATHQE87XRO0YegyDLTHrY\r\n+6Y/XQU0b3QaSlpcq8+RjMUnUnxzQEAcLVN9ZRLcamebq3djJHvPdJDPBtPm\r\nh7sKsgn+PsoZbh3Wbut1vz58nQfwyEwKku3Prb3qXCeRZEGvt4XZiln1IlbI\r\nDuRs1lZ6b2isVA5sx7upXfqAgfAGTQ93T8lym50aDTf5a9k4umto78gM8AUz\r\nr44DRCZrPbDxbe/0nwfapV5xRJsOqW1xI6ql/5laXlDPtcsmFJOLURKLwYnq\r\nx0tiXBMWgKnRHQgYabX1XVGCwGBORJEcGUZTcC7exlPqdf8bIgV7VA06/pr6\r\nUMpLiECPXwiQ6s0uGEhN0cC/87paKZIr5mtAi54tUQihxjA+0EDts34nRJwc\r\naXvvUKFOau7pDUX9orMEreZvvzHJNAmDFCWJhfDAzdhc2PVVj5PY4lWxQ2s8\r\n1X10sXQY9V9MKmBZqMHqUl6LihVWkxhg5RmERLdh9ntF1buYEOIRfuTTJWC7\r\nIWTjVYMDtISpuWEkJpeeTBVZ6VV5wFL1U5m/tzWQTUaYQjXchmXeoxVzczK4\r\n8FXT+zRrTryT6C36zpRMeMnxGdeOAJLQcxqXNgTO5dS0iuKYzkZfYE1PeyVd\r\n6PZrCvr07QZaypLZupqmpXlgauKUggmT05I=\r\n=E0ZP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.18.1-alpha.4_1652831391418_0.4668493532409881"},"_hasShrinkwrap":false},"0.18.1-alpha.5":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.18.1-alpha.5","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.18.1-alpha.5","@creditkarma/thrift-server-hapi":"0.18.1-alpha.5","@creditkarma/zipkin-core":"0.18.1-alpha.5","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.18.1-alpha.5","@creditkarma/thrift-server-hapi":"^0.18.1-alpha.5","@creditkarma/zipkin-core":"^0.18.1-alpha.5","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","gitHead":"438ee54d27c7234d0a7f5b4ac13bfccbf4b881c1","_id":"@creditkarma/zipkin-tracing-hapi@0.18.1-alpha.5","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-edI5RxK1v6oDcPlsIldpI1mvw+djZNwfN8t+yMWKyaLQ+QMj/KNIX0PD2n1K9S6h8iQCXHaqjo+sSwobirN0Cg==","shasum":"07d0ecfc94d17307450fff9f322dbc24e80cedf8","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.18.1-alpha.5.tgz","fileCount":9,"unpackedSize":25007,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjMtKG43G3AoD0TeS5Vvql8NItRH/CppUKSTNERmq09gIgXP98e3oDkl9bkf2VUvktlrNDvLAYFcY5tkd0hFnjubo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJimU22ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvmQ//bZ5kkLFtIM1IjAsFF2dgo2H027R83v9gOsaDl54PDUZy6QLf\r\nmY5xDiunevXCYULslekG3M7DTa7k2jErN7u4oojEy5kb8XPJP0R5L7vUMa4B\r\n1ypMHOr5ivy4w2NOqIRvJL0gPPKRJVPkfVv9pcDBMJzRopKB2YUk1oZWt8Tc\r\nMO5fVd4I163Q2weFTaCaMRbctmGfzSeiahKqe/LL0Rvi8barFU9M0CRRcpnn\r\nJsLmY6OL771R0gtVTa3MrAxUoChjJDmEvOa31+sSpu8g2/Tk3+WjOS1pSGIz\r\njBHaTh2m11+fUXQwmvxYYRG5nukhGWqgi5hRt66HscqGoBk5WjSHwdqjhevz\r\nT+ZzTOf3l4GK2HOnO7wVReBZ1o05MNtgxH4z4iSaRzRBdEgCYAlUTYQdYkeT\r\nZEFlnARqG1zW6mzo2MzIcfvKUSd9HvoLliZ+MyXl36FGLTr1Xq2X44xGO3RC\r\n8Pjugu7t9bnxXFf2hG71JK1z0ufEJpgkNPvn2GAew45HmjsrW/PfgWOXL4D7\r\nXEu5fVE1a7ESyW9Y03iZsnM7oIiClH06XYAdYzJQ8nJmNaRZ9QkhiH1ZDr1R\r\nZv/sWVrUy9T2j6JQO+4I5USGj3fyiIAyd09bSVNHu99QGs3G7NlJ1bIDUziU\r\nMr1oj43vD5Q5VK0XxFtq2eYFYEQoNub5SbY=\r\n=v+M5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.18.1-alpha.5_1654214070538_0.42867935499123133"},"_hasShrinkwrap":false},"0.18.1-alpha.6":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.18.1-alpha.6","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.18.1-alpha.5","@creditkarma/thrift-server-hapi":"0.18.1-alpha.5","@creditkarma/zipkin-core":"0.18.1-alpha.5","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.18.1-alpha.6","@creditkarma/thrift-server-hapi":"^0.18.1-alpha.6","@creditkarma/zipkin-core":"^0.18.1-alpha.6","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","gitHead":"9c77845a0b15395f2c219d7844ce2963eb8df773","_id":"@creditkarma/zipkin-tracing-hapi@0.18.1-alpha.6","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-huIwOsFlHSyO6ErAF3x7lzPOqTRBmL2zxXJOybwNEP2rnzGzZln6cg554V/1WO7uTEE0O7osszXlprQCEvKdug==","shasum":"b4a6ff7b66a96ead08b553211dec87082b6034dd","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.18.1-alpha.6.tgz","fileCount":9,"unpackedSize":25007,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOnZuzYO+CMU0qluaymSxz8xZrFqmbbS39esf5HBUwoQIhAJE6QyuynPKlEF6G3KKsvsqrnLj+j9M0n0L993HWLLFn"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJioOhNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrz/g//RiXG4SfR/vAozpy8qbWkfHsbTw9lm2m7yAXB2m89wMAyltLD\r\nKdXTg6WnmdjXdHZwulrGNIBBgQS0BR0QvABFGwJmxovuSfKeSASvp2LqLuwP\r\ndUDg/p1YJXdUTzJ1kRl7w14upC1BEMMm4QbL31EJAiY0QkBY8IWuIo7Jp3Ae\r\n8NUyig8FreWSrf5a0TmvEa/IH8Sl/Upoqu6nylKmPNqsMGs9r7a1LZsZFbho\r\nS/V1xbZrls/qxb6FAI8wBr4sUD+Fez8M5tLoo+OI38ZhMD8VJAQOfr6tW9yB\r\nkzQZ+X+d9rRphh/QOBtN+7U7aJW2ZjrPzxt0jag2mu4qfJxeekrTCgG/Ikmx\r\nHgPo+s4qr9x6B3J6J4eDqlB4R1mzsVopWOvSX5NvE8kPV6I+Ul5qDkr8xX/G\r\nRxo5gnVihIQJsX5VoPDijYvrj1RuihBcHoEBZOtHmjnR5F4HnKzRbjdCH7U8\r\nuN872rjHTs6H8Fj4Bw7zvB+b5F8JobfS8y+vuGALjNvBaUOFq/ZF+ZK8cH96\r\nE1chSgtgob6eMLVqCYNo4zov5AidfEe6m8mv3FruwpyM3K+/cVq5hqI8GJa3\r\nc9p3aeyAK7GrcfoCgzFU7vJdE2uwLRxEhdNiW+12S7SyyEWQJkXpsNOPCSGi\r\n7pkpewaZOjEk3KsdWzTdSjHi0vlh7L9qOEk=\r\n=96p4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.18.1-alpha.6_1654712397738_0.07138531065286857"},"_hasShrinkwrap":false},"0.18.1-alpha.7":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.18.1-alpha.7","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.18.1-alpha.7","@creditkarma/thrift-server-hapi":"0.18.1-alpha.7","@creditkarma/zipkin-core":"0.18.1-alpha.7","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.18.1-alpha.7","@creditkarma/thrift-server-hapi":"^0.18.1-alpha.7","@creditkarma/zipkin-core":"^0.18.1-alpha.7","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","gitHead":"833898a2c75c4b9088a533ebf8008d392eef7b26","_id":"@creditkarma/zipkin-tracing-hapi@0.18.1-alpha.7","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-Cc3lcBA05cTAca7EKpYeySOXaA7RIuwJ/OnahkVSbrmBqo5ABRaSS2t31UJ0Dp4Cc7yLf7jfiYMLV06ExHyWog==","shasum":"d55665cbd9a4ca606f05804fbf205ecd220cacd5","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.18.1-alpha.7.tgz","fileCount":9,"unpackedSize":25007,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlGkAJ50x/vqjgw9IGJzl7uK1qwNGsDwaJl8v9V2TCLQIgQPL+dNtXOxqqDX0ZCfjYkcPa288QZz0Eghcs9qM+2O4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJioO7nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoo+Q/+KR8Eeb5KEzNk4UugbmUPtKFsOjOpQuoSi3a8wHggAZ9E0/Mv\r\nzaZ+S9BmGIPhCpipvB7bYhvzuTSuN1rcYJ6HGFRsQqS2QekkKtH304PZ8Qxe\r\nPj4z2gj8cGEz8M5qMCtTCuVrGwHNgwV6WizaQODtmRBW1UB5iwNiq9guPKED\r\nWQDuWSEwKDh3dgHP6fTTL6+h5Vhh3Qo3NbXmJ4KWfPsDMI/dEMse1OrEpK8E\r\nDVMJ7BRePtiF9E0v0ZUF+fN2Cbhcct0Bxw2/+CuQ1XJtHj66Cr6+6zY4a6ux\r\n6IFVyrn6kohs7HhbwwT7DdMZbqfXh8zbLASld80aAR8mF4ttX5TFahYYvJR3\r\n0EdK2Uv7qToMPscgbjwrr5vNpxCl3MPInYO/BcqrPF+XzIfCxNpFdVbMg6pQ\r\nWD10//CAZlBVzAPXYDdkN070rOEYzpAF07JyJcqrEYCNXBnjAK1Tp92zkpad\r\nGv6KvzGWudI21AuCduM01xXkHMKVsLnkdyvRm8Crp0b/saV3GBRWPAFp73Rv\r\napWcM4nDoBGj7OM9mbd0hy1JmsTHTLrH4fAl/5V1klZaeeBxGKKdQLTjRmH7\r\nTta8sw3/RLWcHUjE47A583VNZY4UKqc+kGWwXHrE1izuf+HPykokMeyz258K\r\na9DxzDtTfgzyjQt1lxyi1TsQZ8B1jZxBB9A=\r\n=mngn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.18.1-alpha.7_1654714087326_0.6888190631612867"},"_hasShrinkwrap":false},"0.18.1-alpha.8":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.18.1-alpha.8","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.18.1-alpha.8","@creditkarma/thrift-server-hapi":"0.18.1-alpha.8","@creditkarma/zipkin-core":"0.18.1-alpha.8","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.18.1-alpha.8","@creditkarma/thrift-server-hapi":"^0.18.1-alpha.8","@creditkarma/zipkin-core":"^0.18.1-alpha.8","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","gitHead":"608135313f757a77824ce29de90264d9388acab3","_id":"@creditkarma/zipkin-tracing-hapi@0.18.1-alpha.8","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-XDV3BryWeIA/r4H2tRXcuys/FdFKwOmAQB63k8su9eGbAl0ZaxQ99KrUWB0pxJbQqW0Ud9wALoZ/xdTwCL5B0A==","shasum":"2e777d5858eda4dbcbfeaaa8dbe70a418191ac0f","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.18.1-alpha.8.tgz","fileCount":9,"unpackedSize":25007,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB4IBZL1L2jsc6NUkp+jEezRd36nbDz9bOkCUN+2uUBvAiEAvmKiC3d5Xs1aD6sib5NbTnfl2Q1RFUVYT5xodYOc190="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJioQaoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoTiw//fd2oawCfQ5pHAGoXKBYLaAchI4i8AYgZNLUb+bX+hKh5r6Zh\r\nXUIOlYLWTQDMj70jSEtw/mj1lchBFspumLAX0iisp7ig/g5w99N2puTgfDvZ\r\ndqdRfCHF33H24wzO0loYX4X90u3DMu9FYGihguxLKVTqedeqU22G/DnQATuA\r\nQPpdcrzEUAMpbeieeB2POIaK+UlxoIKP33UkeYGpiDmvabQ3qkfhFR0OmAZm\r\nV06S9ZjreiFguKWIYHdElbRMzbIM1dtY5K/btlg6W7RoX3Wvq7GdrmeUddC3\r\nV/DC5HtoMcClfKtcLyEJeuNPJIZLh/x4VbSeMOGyX1iet6sNifoOllDmB3an\r\nbDCchZtkKx+RKDLdtqTZPWVXfv+CSUfhy/RUgjic12e5NRZDeHBEk893nlDo\r\nLgHDKZB87+00rdfuQGPbVYALVPeH2463TApMTfqa7AIEg1MoD1ymz3ViOFSK\r\nAAnn/IlmF4YDRkwCEPnfKFmYtR2AI9pxkfIkV/SKU+t3+67lkQGVwrOVrUwU\r\nZkXz/g95z3KK9d0xOSAX2jXpQ57+46thnfvyxGYxpC5xhAFI9O5tzT3qiaGd\r\nAaHWgJARKI9jKZep025Wxuy6yThGvXE7KVFgY39jjVfVu2cjpHkhO5TAWZr5\r\n437ZGOkvdqiUz/K0265OORrizK5P5Sp5xvY=\r\n=3arB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.18.1-alpha.8_1654720168753_0.28916467853550065"},"_hasShrinkwrap":false},"0.18.1-alpha.9":{"name":"@creditkarma/zipkin-tracing-hapi","version":"0.18.1-alpha.9","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"0.18.1-alpha.8","@creditkarma/thrift-server-hapi":"0.18.1-alpha.8","@creditkarma/zipkin-core":"0.18.1-alpha.8","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^0.18.1-alpha.9","@creditkarma/thrift-server-hapi":"^0.18.1-alpha.9","@creditkarma/zipkin-core":"^0.18.1-alpha.9","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","gitHead":"b0c9fec3b7735e268f02163e7d1dec86ddf78acd","_id":"@creditkarma/zipkin-tracing-hapi@0.18.1-alpha.9","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-9UeLBMLdNkgOb6LVov53gIKCJJH6z4VWM+nQO4eXmr4mY1gWwA+CoZdR/Dl24QGUKxILBXRuCkWG8cNIxRjhDg==","shasum":"966ac982d6d5710f687e1a19b5860cc2d55ee244","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-0.18.1-alpha.9.tgz","fileCount":9,"unpackedSize":25007,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFUyaeCvaIsTJkU4+yZLROgxes8p4a5rGEXwkTgXdN+CAiEAz/nbi9rl0dlJ2rll8pxf2kd8zy3NhbmaQmZK8K2FnYs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJip3nbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrReA/9F9vN7HQj/Q0vXT+WzqMgOInHL60r016diuKgmeAoTxd2M13/\r\n5akJYgLYGrGATkoxbCYhLbhFl14f6ws/9u+ieKAv5vc0CSdZnfSwuRjAwHN/\r\n0qjsR5bvYFMIJ5JWMDJAs0BqrIOOesEUTFv/HJuG5tEb2mmYKz+GdmfmIKs2\r\naoxlt8w2hlamHBnITxSVhGBKgGGtJ+mOVjUX8ZkBboSIbLsALw7xY1Hpq8aw\r\nwhxAyrEqtH7QxBiW31Z0EmZTBEC8R3+drZ4pUzT8r8YoW80M3ypKQcAhw9qA\r\nylo58ZolBZj8S5zM8WfPj/O8oJf9P9GLmzFgtxEMMj6CZRkIoO7uE20Y3PKV\r\noXWHk3tEE+RKosyFbwqFNzQ3TdiNMXFMDtriSr44el8B7ZhHeSepxcT5caXx\r\nXPgyIOCTgBHmwPwXFkG47W3WEsVk39WgqHtpfNkYlVRGA8H8Zj/n6jpxTRc3\r\nrtYvy2cunae0WbW8HFGP9+G/Bkn9NrVulXVd7CxA38qpC9AV5X0KZOquCGf+\r\n62tACvf30f8pxjXMvdiaQ2kC5ge1d7fzKTlzKwSTicjhp1bPlwaW7cmgAe7Y\r\nWTHD+De69PATbYlJDZAaBtZwP5lUi3MqfJkk0xJqIT4Jfi3s8CaCJOfU5o5w\r\niJ0Mxes7GxnwivoGDIcSv+pEYcVsbQFWEGk=\r\n=FAX2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_0.18.1-alpha.9_1655142875711_0.3640287383897307"},"_hasShrinkwrap":false},"1.0.3":{"name":"@creditkarma/zipkin-tracing-hapi","version":"1.0.3","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"^1.0.0","@creditkarma/thrift-server-hapi":"^1.0.0","@creditkarma/zipkin-core":"^1.0.0","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^1.0.3","@creditkarma/thrift-server-hapi":"^1.0.3","@creditkarma/zipkin-core":"^1.0.3","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"gitHead":"d55fafa26ad389b578428abb3cd6bf1463269b10","_id":"@creditkarma/zipkin-tracing-hapi@1.0.3","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-IM4PEZoJYaeNtvNjR8P+6DY6j+mZliBVIYKL/tv2gH4OakiDXkeK3VqxEaBHdFUwsGvEt0cAS1hcAShTIjJ63g==","shasum":"9a76990c93b3c796c4b0dcd82ea1bd8c595bc022","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-1.0.3.tgz","fileCount":9,"unpackedSize":24947,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFS/gWq8VFLqjP7anWPbNNC970eMaIJmM9niAazLVzrOAiEAxbsZc92B6MPsPFXZLl5LhxvKtaImno7PlzOnSbnHKAE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitkZNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYmQ/9EIUsZ38eO+mgvpJvvDXy9LZK2NkcVb9lC2ax1ZZS17mQi/bq\r\nGNFaI+P3zGoTGk3D6J1o/SpoaDuh7ELUGxuAZH4cTPKZdze/McRulL6KsPvh\r\nhKRwXC1BsgglQ84oYvL4xJ0LAZ1nSkOGtnkOySFebGTzPSHZN/GtCWYjtQxN\r\nkof827GuyAtbOESIl+UOvLq9i7uQV9uKL0qHO2CICao+x10a55qZjcM7gsyn\r\nw3SyLiWF74dH86ioynoO0oJ+E47EinUKH1JN2Eemy1Iy1UxausznKmsJ4Lzm\r\nFYJBn7vAQZSZCcJGHgIj7JTYvIFDUKprealg9u/uSjHpUAOKUisdwrRwH9Zf\r\nfa2DoHwRsIsRFNI3YO2RsxfARxnY0zlkwhyZlRF/bS80fvgzKZlQu6kwW3C4\r\nLdywixw69kLBqzGBvSLsxzCZxq702SDtab0sVRyh9ompFXjQSNgKlw5ITb1+\r\naVL9gYXNrFDQHuQfWugi2GBwxjIm9oZsi/laKxd/ni1MpNJMxp+IAblpLXJx\r\nGCn2pj7qqtb1vFEWHOPrcpnHc0j0yYElNwCslPPmUOID7hAVAPEPp9bk0lTC\r\ncS94YjeK5aBuAhzgoBWbkUPK1U6q7nzo77U+FeQitCBp6l1pHjF3NLCu8UJn\r\nEySWnf8EKToYxwIEd9g90YMvOhVwYZFAGdA=\r\n=+Pcu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_1.0.3_1656112717547_0.8895975886799536"},"_hasShrinkwrap":false},"1.0.4":{"name":"@creditkarma/zipkin-tracing-hapi","version":"1.0.4","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"^1.0.0","@creditkarma/thrift-server-hapi":"^1.0.0","@creditkarma/zipkin-core":"^1.0.0","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^1.0.4","@creditkarma/thrift-server-hapi":"^1.0.4","@creditkarma/zipkin-core":"^1.0.4","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"gitHead":"e3f1e620734155b7f7d3391a5e0c87a1a24744ed","_id":"@creditkarma/zipkin-tracing-hapi@1.0.4","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-ZnUQBlgyC//zMyn5uq9HzFJJEPqSKOYBBK9AWIUWeNhoYBNxfBsW2qrXcoBYGe4gLZqIunlbuVDCUcwZhY5XXQ==","shasum":"32b09b1240a749f13f0a43f1957c63f5f0ced3eb","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-1.0.4.tgz","fileCount":9,"unpackedSize":24947,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHJokvltF6ZXsReeGn6k8Hkmc+2vdage8l8n/vC1qDstAiEA2GVkwaBpAG0M1EzPb8EQOCRRib+iv70WsqRn7B0KHvM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitkgFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZbRAAm4m9nGBGqc9s/BD42nmhS2e1CiGXNmxgfWGJBp3nC4PhwaXo\r\nltQpxobwyWJsNjtwgr0iE1tcRgPuAXFLmV8kAHMsLiR4Z33ZHDodI+Sh7S5e\r\n9pXX72RDVAiMvaltoGVOt+n++7i36DB445ph0kV2kpOFdZchVBsab4ZizQwc\r\nAYy9kAWkq2O2k8uX5FA2kZQFsj7BVi0ftHzYlygVLY4cHdFcCfTPUFPK0/H5\r\nwQbHospKwIvmfY5k/hat28LQ+UlmXnvv+oPFP2u1NAwneD/IvmruD4m5iX4o\r\nnM1+8BTzfx0rlXpdAVafHuIAhgwrwmD8kVdjLAM5JeBE2FKrZnPr/J3e/sjB\r\niPT80EexzhR+ABatssWv1vRtXRpSdzqMgp1OlJuAoC35kU/wBZBOOS4peYJb\r\n9ZsArioF1fS7oQhkZ+mjlqVOQ3cpXJDBE0g4JTnHj5xbQKgOrI++y4iQlSer\r\nGa4nBWNTAz03AMRQksI2SRnqzHDuE9jcH7HLBFwhGp/DVjn5wSHlvhWi/wQu\r\nticnstib1cClXAqXj6GenS+mao69yCKpWnGKtIxBusLwhmLRUhU9ByisTK9s\r\nTewPympmQxfxUc9ui3St2Nc9imN/EO5Lav0b6DivntyrXTXEecrlNbiM1nvw\r\nqPfgBctyCA1/stI88UIAr2/Dr48PvH34dFI=\r\n=0Wtj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_1.0.4_1656113157006_0.7534472696930308"},"_hasShrinkwrap":false},"1.0.6-alpha.0":{"name":"@creditkarma/zipkin-tracing-hapi","version":"1.0.6-alpha.0","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"^1.0.0","@creditkarma/thrift-server-hapi":"^1.0.0","@creditkarma/zipkin-core":"^1.0.0","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^1.0.6-alpha.0","@creditkarma/thrift-server-hapi":"^1.0.6-alpha.0","@creditkarma/zipkin-core":"^1.0.6-alpha.0","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","gitHead":"1e1eb36bbe546c9325be1a5174d7290ff142c328","_id":"@creditkarma/zipkin-tracing-hapi@1.0.6-alpha.0","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-f3kZK1gycRbYG0JLVlPEp/sRHoH8RJiIgWI1ez/J1IsoLlUe/2EnnTfgPtFkao6uumOTH6tGXQSvu9EnFyfxCA==","shasum":"71bf3269603832cd23a27405c9eed1bbe241546b","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-1.0.6-alpha.0.tgz","fileCount":9,"unpackedSize":24979,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClvQlmO3HkBE1JXrmeWUyisMdJANInOFBmFnay4izKpQIgVK7BDzBqZLGzdudWX9GXCUBAzuOnqw/Xx3jl5CjkbAQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCP59ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrvug/9H+X56kf/PIRRLSNqLT11AzA0rRdU9PCPqE/VdliNFf9n0AlN\r\nrCMErxOGTfDtXxFE9lIwrM02ZwUhorFAzSfFkSugRkRGxQUVbmGyNvvh2LdU\r\nr4CoTrdxVO5vlexvSs6tuGt70hXNGJga0A2RZHlsmiOrEsEMps45NjeaePF7\r\nBchWE4GBjWsMSNaTkPYGM9lHFa36io7bhY4ou50mYOPRdaD+Y2HKOzVUTAbV\r\ni5Wrnqwrtn56cLlIO+SZP+zNak89s5aOLN7scqwFSfQgkVG5Ho7eriHWj9Yh\r\nUmp66Pu3T1VVO8bAlRJU9JWjknzbnRmXskw7Olrl6hOhzeuIPXXWqogeBAof\r\nwwihCjQ2chlghNw8Pis8g6BfkV8PgbNcWoslAymr/PjNbVMxtmtVkU9L2FTe\r\nVmHIuHRc1aPMwIj7eNhrkFb6cfsFaJ8O2ggvpZIiss5+vBt08sBTR4iKVWNM\r\nSNEEC2uTiBsEwstQa7KM+ssopM++3O8qLdLC4soqK0pjDnwxlUNMHnz3OO9F\r\nczlUi1Ap1kF+yvO/zBMY6g3B7++i4zNCKL+SDZVTm/xyTGjyacsdLFdiIBOr\r\n7BipGIy5fJ05tRkebP5NKARVwJ0dWRYuL4bwhHlfVQmvkxt3RYiFXazuALfq\r\nW1At6wXHn0HNyE1W4wdApCQ1eplQdYwETIg=\r\n=QArr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_1.0.6-alpha.0_1678311037453_0.9969503243794322"},"_hasShrinkwrap":false},"1.1.0-alpha.1":{"name":"@creditkarma/zipkin-tracing-hapi","version":"1.1.0-alpha.1","description":"Zipkin tracing for thrift-server-hapi","main":"dist/main/index.js","types":"dist/main/index.d.ts","keywords":[],"scripts":{"clean":"rimraf ./dist","lint":"tslint --fix './src/**/*.ts'","format":"prettier --write 'src/**/*.ts'","prebuild":"npm run clean && npm run lint && npm run format","build":"tsc","test":"npm run test:only","test:only":"echo 'No tests for zipkin-tracing-hapi'; exit 0;"},"dependencies":{"zipkin":"^0.15.0"},"peerDependencies":{"@creditkarma/thrift-server-core":"^1.0.0","@creditkarma/thrift-server-hapi":"^1.0.0","@creditkarma/zipkin-core":"^1.0.0","@hapi/hapi":">=20.0.0","@types/hapi":">=17.0.0 <20.0.0"},"devDependencies":{"@creditkarma/thrift-server-core":"^1.1.0-alpha.1","@creditkarma/thrift-server-hapi":"^1.1.0-alpha.1","@creditkarma/zipkin-core":"^1.1.0-alpha.1","@hapi/hapi":"^20.0.0","@types/hapi__hapi":"^20.0.0","@types/node":"^16.11.0","prettier":"^1.18.2","rimraf":"^2.6.2","tslint":"^5.11.0","tslint-config-prettier":"^1.15.0","tslint-plugin-prettier":"^2.0.0","typescript":"4.6.x"},"readme":"# Zipkin Tracing Hapi\n\nOne of the problems that arise in microservice architectures is tracing the life of a request. Where do errors occur? Where are latencies? Just understanding all of the services a request touches can be non-trivial in complex systems.\n\nThis plugin for [@creditkarma/thrift-server-hapi](https://github.com/creditkarma/thrift-server/tree/master/packages/thrift-server-hapi) helps to solve this problem by adding support for distributed tracing with [Zipkin](https://github.com/openzipkin/zipkin-js).\n\n## Installation\n\n`ZipkinTracingHapi` has a few `peerDependencies`.\n\n```sh\nnpm install --save @types/hapi hapi\nnpm install --save @creditkarma/thrift-server-core\nnpm install --save @creditkarma/thrift-server-hapi\nnpm install --save @creditkarma/zipkin-core\nnpm install --save @creditkarma/zipkin-tracing-hapi\n```\n\n## Usage\n\nDistributed tracing is provided out-of-the-box with [Zipkin](https://github.com/openzipkin/zipkin-js). Distributed tracing allows you to track a request across multiple service calls to see where latency is in your system or to see where a particular request is failing. Also, just to get a complete picture of how many services a request of a particular kind touch.\n\nZipkin tracing is added to your Hapi server with a plugin.\n\n```typescript\nimport * as hapi from 'hapi'\n\nimport {\n    createThriftServer,\n} from '@creditkarma/thrift-server-hapi'\n\nimport {\n    ZipkinTracingHapi,\n} from '@creditkarma/zipkin-tracing-hapi'\n\nimport { Calculator } from './codegen/calculator'\n\nconst PORT = 8080\nconst HOSTNAME = 'localhost'\nconst SERVICE_NAME = 'calculator-service'\n\nasync function startServer(): Promise<void> {\n    const server: Hapi.Server = await createThriftServer({\n        port: PORT,\n        path: HOSTNAME,\n        thriftOptions: {\n            serviceName: SERVICE_NAME,\n            handler: new Calculator.Processor({\n                add(left: number, right: number, context?: express.Request): number {\n                    return left + right\n                },\n                subtract(left: number, right: number, context?: express.Request): number {\n                    return left - right\n                },\n            })\n        },\n    })\n\n    await server.register({\n        plugin: ZipkinTracingHapi({\n            localServiceName: SERVICE_NAME,\n            endpoint: 'http://localhost:9411/api/v1/spans',\n            sampleRate: 0.1\n        }),\n    })\n\n    server.start()\n}\n```\n\nIn order for tracing to be useful other services in your system will also need to be setup with Zipkin tracing. Plugins are available for `thrift-server-express` and `thrift-client`. The provided plugins in Thrift Server only support HTTP transport at the moment.\n\n### Options\n\n* localServiceName (required): The name of your service.\n* remoteServiceName (optional): The name of the service you are calling.\n* port (optional): Port number on which local server operates. This is just added to recorded metadata. Defaults to 0.\n* tracerConfig.debug (optional): In debug mode all requests are sampled.\n* tracerConfig.endpoint (optional): URL of your collector (where to send traces).\n* tracerConfig.sampleRate (optional): Percentage (expressed from 0 to 1) of requests to sample. Defaults to 0.1.\n* tracerConfig.httpInterval (optional): Sampling data is batched to reduce network load. This is the rate (in milliseconds) at which to empty the sample queue by sending data to a collector. Defaults to 1000.\n\nIf the endpoint is set then the plugin will send sampling data to the given endpoint over HTTP. If the endpoint is not set then sampling data will just be logged to the console.\n\n### Tracing Non-Thrift Endpoints\n\nSometimes, as part of completing your service request, you may need to gather data from both Thrift and non-Thrift endpoints. To get a complete picture you need to trace all of these calls. You can add Zipkin to other requests with instrumentation provided by the [OpenZipkin](https://github.com/openzipkin/zipkin-js) project.\n\nWhen constructing instrumentation provided by another library you need to use the same `Tracer` in order to maintain the correct trace context. You can import this shared `Tracer` through a call to `getTracerForService`. This assumes a `Tracer` has already been created for your service by usage of one of the Thrift Zipkin plugins.\n\n```typescript\nimport { getTracerForService } from '@creditkarma/thrift-server-core'\nimport * as wrapRequest from 'zipkin-instrumentation-request'\nimport * as request from 'request'\n\nconst tracer = getTracerForService('calculator-client')\nconst zipkinRequest = wrapRequest(request, { tracer, remoteServiceName: 'calculator-service' })\nzipkinRequest.get(url, (err, resp, body) => {\n    // Do something\n})\n```\n\n## Contributing\n\nFor more information about contributing new features and bug fixes, see our [Contribution Guidelines](../../CONTRIBUTING.md).\nExternal contributors must sign Contributor License Agreement (CLA)\n\n## License\n\nThis project is licensed under [Apache License Version 2.0](./LICENSE)\n","readmeFilename":"README.md","gitHead":"d213bbef402a85ec849adaf93bae2c953d7c11dc","_id":"@creditkarma/zipkin-tracing-hapi@1.1.0-alpha.1","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-lsZh2oMUOXEerdevoqYZNWtxYBuieE/bdaK0SKlZ+mX7DfPNfa/5Z8EjRzvcyNUmdW1ktvX2p6cN588JOzKy6Q==","shasum":"b4ee1220fd966a55eb1c2ee2013dcf9dba55b106","tarball":"https://registry.npmjs.org/@creditkarma/zipkin-tracing-hapi/-/zipkin-tracing-hapi-1.1.0-alpha.1.tgz","fileCount":9,"unpackedSize":24979,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPCa7L92I0IuUEmOczEfVbN16xSX+s3XOoC4dEgUri3QIgSNX2rZ2OuLJWNOzbpjmlhec4oTIcG6hqRiv+g/Ev2M0="}]},"_npmUser":{"name":"ck-npm","email":"pie@creditkarma.com"},"directories":{},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/zipkin-tracing-hapi_1.1.0-alpha.1_1685987284840_0.9046798922945696"},"_hasShrinkwrap":false}},"time":{"created":"2018-11-30T02:57:33.966Z","0.11.0-alpha.0":"2018-11-30T02:57:34.272Z","modified":"2023-06-05T17:48:05.169Z","0.11.0-alpha.1":"2018-12-04T21:58:39.905Z","0.11.0-alpha.2":"2018-12-05T21:36:37.683Z","0.11.1":"2018-12-18T23:38:49.430Z","0.11.2":"2019-01-07T22:27:41.791Z","0.12.1":"2019-01-11T22:51:43.153Z","0.12.2":"2019-01-11T22:59:07.014Z","0.12.3-alpha.0":"2019-01-14T04:24:31.647Z","0.12.3":"2019-01-14T04:48:36.984Z","0.12.4":"2019-01-14T19:38:18.384Z","0.12.5":"2019-01-14T22:16:56.628Z","0.13.2":"2019-03-05T05:22:20.238Z","0.13.3":"2019-03-05T05:25:21.606Z","0.13.4":"2019-03-05T15:54:18.146Z","0.13.5":"2019-03-29T05:54:35.638Z","0.13.6":"2019-04-12T22:26:55.863Z","0.13.7":"2019-06-19T02:18:05.157Z","0.13.8":"2019-08-07T20:48:42.159Z","0.14.1":"2019-08-09T23:49:10.141Z","0.14.2":"2019-08-13T17:31:16.566Z","0.14.3":"2019-08-13T20:28:11.518Z","0.14.4":"2019-08-16T04:13:20.277Z","0.14.5":"2019-08-22T15:15:06.698Z","0.14.6":"2019-09-05T19:03:58.032Z","0.15.1":"2019-10-02T18:00:18.734Z","0.15.2":"2019-10-14T19:53:04.249Z","0.15.3":"2019-10-15T01:40:10.965Z","0.16.0":"2020-01-21T22:18:13.030Z","0.16.1":"2020-05-27T19:01:00.764Z","0.17.0-alpha.0":"2021-04-01T16:22:55.683Z","0.17.1":"2021-04-02T23:33:27.096Z","0.17.2":"2021-04-03T02:14:04.681Z","0.18.0-alpha.0":"2022-05-13T16:27:25.946Z","0.18.0-alpha.1":"2022-05-16T15:56:11.055Z","0.18.0-alpha.5":"2022-05-16T20:33:11.446Z","0.18.1-alpha.0":"2022-05-17T23:28:35.602Z","0.18.1-alpha.3":"2022-05-17T23:42:18.281Z","0.18.1-alpha.4":"2022-05-17T23:49:51.644Z","0.18.1-alpha.5":"2022-06-02T23:54:30.759Z","0.18.1-alpha.6":"2022-06-08T18:19:57.910Z","0.18.1-alpha.7":"2022-06-08T18:48:07.510Z","0.18.1-alpha.8":"2022-06-08T20:29:28.843Z","0.18.1-alpha.9":"2022-06-13T17:54:35.898Z","1.0.3":"2022-06-24T23:18:37.704Z","1.0.4":"2022-06-24T23:25:57.128Z","1.0.6-alpha.0":"2023-03-08T21:30:37.639Z","1.1.0-alpha.1":"2023-06-05T17:48:04.980Z"},"maintainers":[{"name":"ouranosskia","email":"UGAPiro@gmail.com"},{"name":"ck-npm","email":"pie@creditkarma.com"},{"name":"hightimesteddy","email":"hightimesteddy@gmail.com"},{"name":"nnanceck","email":"nick.nance@creditkarma.com"},{"name":"wookiehangover","email":"samuel.breed@gmail.com"},{"name":"riley-stroud-ck","email":"riley.stroud@creditkarma.com"}],"description":"Zipkin tracing for thrift-server-hapi","keywords":[],"readme":"","readmeFilename":""}