{"id":27786292,"url":"https://github.com/clever/tracing-middleware","last_synced_at":"2025-06-24T19:40:27.215Z","repository":{"id":13893082,"uuid":"75232946","full_name":"Clever/tracing-middleware","owner":"Clever","description":"Moved to opentracing-contrib org","archived":false,"fork":false,"pushed_at":"2024-09-23T15:35:04.000Z","size":27,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":50,"default_branch":"master","last_synced_at":"2025-06-05T10:09:26.358Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/opentracing-contrib/javascript-express","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Clever.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-11-30T22:31:26.000Z","updated_at":"2024-09-23T15:35:09.000Z","dependencies_parsed_at":"2025-04-30T16:10:55.045Z","dependency_job_id":null,"html_url":"https://github.com/Clever/tracing-middleware","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Clever/tracing-middleware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Ftracing-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Ftracing-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Ftracing-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Ftracing-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clever","download_url":"https://codeload.github.com/Clever/tracing-middleware/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clever%2Ftracing-middleware/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261744848,"owners_count":23203283,"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":[],"created_at":"2025-04-30T15:59:10.110Z","updated_at":"2025-06-24T19:40:27.199Z","avatar_url":"https://github.com/Clever.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![OpenTracing Badge](https://img.shields.io/badge/OpenTracing-enabled-blue.svg)](http://opentracing.io)\n\n# tracing-middleware\n\nMiddleware for express to enable opentracing.\nSupports any opentracing tracer compatible with version 0.11.0 of the opentracing javascript library.\n\n## Deprecated\n\nPlease note that this library has been moved to [https://github.com/opentracing-contrib/javascript-express](https://github.com/opentracing-contrib/javascript-express). Please use that version instead.\n\n## Install\n```\nnpm install --save tracing-middleware\n```\n\n## Usage\n\nE.g., using LightStep as your tracer:\n\n```\nimport * as express from \"express\";\nimport middleware from \"tracing-middleware\";\nimport * as LightStep from \"lightstep-tracer\";\n\nconst lsTracer = LightStep.tracer({\n  access_token   : 'foo',\n  component_name : 'bar',\n});\n\nconst app = express();\napp.use(middleware({tracer: lsTracer}));\n```\n\n## Options\nThe `middleware` function takes in an options object as its only argument.\n```\nconst options = {\n  tracer: [Tracer], // Defaults to the opentracing no-op tracer.\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclever%2Ftracing-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclever%2Ftracing-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclever%2Ftracing-middleware/lists"}