{"id":20854012,"url":"https://github.com/zephyrpersonal/zipkin-instrumentation-egg","last_synced_at":"2025-07-11T12:35:09.865Z","repository":{"id":57220747,"uuid":"157364543","full_name":"zephyrpersonal/zipkin-instrumentation-egg","owner":"zephyrpersonal","description":"just another egg-zipkin-plugin","archived":false,"fork":false,"pushed_at":"2018-11-14T08:42:13.000Z","size":65,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T01:35:39.599Z","etag":null,"topics":["egg","egg-plugin","eggjs","instrumentation","trace","zipkin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zephyrpersonal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-13T10:47:17.000Z","updated_at":"2022-05-18T10:01:38.000Z","dependencies_parsed_at":"2022-08-29T04:01:46.563Z","dependency_job_id":null,"html_url":"https://github.com/zephyrpersonal/zipkin-instrumentation-egg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephyrpersonal%2Fzipkin-instrumentation-egg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephyrpersonal%2Fzipkin-instrumentation-egg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephyrpersonal%2Fzipkin-instrumentation-egg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephyrpersonal%2Fzipkin-instrumentation-egg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zephyrpersonal","download_url":"https://codeload.github.com/zephyrpersonal/zipkin-instrumentation-egg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243222184,"owners_count":20256229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["egg","egg-plugin","eggjs","instrumentation","trace","zipkin"],"created_at":"2024-11-18T03:24:07.297Z","updated_at":"2025-03-12T13:14:32.523Z","avatar_url":"https://github.com/zephyrpersonal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# egg-simple-zipkin\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-simple-zipkin.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-simple-zipkin\n[travis-image]: https://img.shields.io/travis/eggjs/egg-simple-zipkin.svg?style=flat-square\n[travis-url]: https://travis-ci.org/eggjs/egg-simple-zipkin\n[codecov-image]: https://img.shields.io/codecov/c/github/eggjs/egg-simple-zipkin.svg?style=flat-square\n[codecov-url]: https://codecov.io/github/eggjs/egg-simple-zipkin?branch=master\n[david-image]: https://img.shields.io/david/eggjs/egg-simple-zipkin.svg?style=flat-square\n[david-url]: https://david-dm.org/eggjs/egg-simple-zipkin\n[snyk-image]: https://snyk.io/test/npm/egg-simple-zipkin/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-simple-zipkin\n[download-image]: https://img.shields.io/npm/dm/egg-simple-zipkin.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-simple-zipkin\n\n\u003c!--\nDescription here.\n--\u003e\n\nThis plugin will apply a global middleware just behind bodyParser\n\nand extend context with a global zipkin tracer\n\nYou could get the Tracer by `ctx.zipkinTracer` and share traceId among the request context\n\n## Install\n\n```bash\n$ npm i egg-simple-zipkin --save\n# or\n$ yarn add egg-simple-zipkin\n```\n\n## Usage\n\n```js\n// {app_root}/config/plugin.js\nexports.simpleZipkin = {\n  enable: true,\n  package: 'egg-simple-zipkin'\n}\n```\n\n## Configuration\n\n```js\n// {app_root}/config/config.default.js\nexports.simpleZipkin = {\n  ignorePaths: [],  // the middleware will ignore path in this array\n  tracer: Tracer // you could pass in your CustomTracerInstance, and thus config below will be ignored\n  recorder: 'console', // accept value ['console','batch']\n  // if you choose consoleRecorder config below will be ignored\n  httpRecorderOptions: {\n    jsonEncoderVersion: 'V2', // accept value ['V1','V2']\n    endpoint: 'localhost:1314/api/v2/spans', // zipkin endpoint\n    httpInterval: 1000 // how often to sync spans. optional, defaults to 1000\n  }\n}\n```\n\nsee [config/config.default.js](config/config.default.js) for more detail.\n\n## Example\n\n\u003c!-- example here --\u003e\n\n## Questions \u0026 Suggestions\n\nPlease open an issue [here](https://github.com/eggjs/egg/issues).\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephyrpersonal%2Fzipkin-instrumentation-egg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzephyrpersonal%2Fzipkin-instrumentation-egg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephyrpersonal%2Fzipkin-instrumentation-egg/lists"}