{"id":13780919,"url":"https://github.com/dekelev/feathers-opentracing","last_synced_at":"2026-02-27T00:31:52.780Z","repository":{"id":32428111,"uuid":"133268719","full_name":"dekelev/feathers-opentracing","owner":"dekelev","description":"OpenTracing integration for FeathersJS services","archived":false,"fork":false,"pushed_at":"2023-03-04T11:55:43.000Z","size":303,"stargazers_count":12,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-21T17:34:54.536Z","etag":null,"topics":["feathers","feathersjs","jaeger","opentracing"],"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/dekelev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-05-13T19:41:28.000Z","updated_at":"2022-01-15T14:27:22.000Z","dependencies_parsed_at":"2024-01-17T02:16:04.806Z","dependency_job_id":"44e3db0c-d343-4f0d-9010-56f755b6019d","html_url":"https://github.com/dekelev/feathers-opentracing","commit_stats":{"total_commits":83,"total_committers":4,"mean_commits":20.75,"dds":0.1807228915662651,"last_synced_commit":"8f9e1ec440f882a89cfe5d6ee048f77c9b87c95e"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/dekelev/feathers-opentracing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekelev%2Ffeathers-opentracing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekelev%2Ffeathers-opentracing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekelev%2Ffeathers-opentracing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekelev%2Ffeathers-opentracing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dekelev","download_url":"https://codeload.github.com/dekelev/feathers-opentracing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dekelev%2Ffeathers-opentracing/sbom","scorecard":{"id":332897,"data":{"date":"2025-08-11","repo":{"name":"github.com/dekelev/feathers-opentracing","commit":"8f9e1ec440f882a89cfe5d6ee048f77c9b87c95e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T03:59:55.426Z","repository_id":32428111,"created_at":"2025-08-18T03:59:55.426Z","updated_at":"2025-08-18T03:59:55.426Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29878988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"ssl_error","status_checked_at":"2026-02-26T23:50:46.793Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["feathers","feathersjs","jaeger","opentracing"],"created_at":"2024-08-03T18:01:21.126Z","updated_at":"2026-02-27T00:31:52.761Z","avatar_url":"https://github.com/dekelev.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Utilities"],"readme":"# OpenTracing integration for FeathersJS services\n\n[![Build Status](https://travis-ci.org/dekelev/feathers-opentracing.svg?branch=master)](https://travis-ci.org/dekelev/feathers-opentracing)\n[![Coverage Status](https://coveralls.io/repos/github/dekelev/feathers-opentracing/badge.svg?branch=master)](https://coveralls.io/github/dekelev/feathers-opentracing?branch=master)\n[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/standard/semistandard)\n[![Dependency Status](https://img.shields.io/david/dekelev/feathers-opentracing.svg)](https://david-dm.org/dekelev/feathers-opentracing)\n[![npm](https://img.shields.io/npm/v/feathers-opentracing.svg?maxAge=3600)](https://www.npmjs.com/package/feathers-opentracing)\n\nThis module contains a set of Express middleware and FeathersJS hooks to automate distributed tracing for FeathersJS services using OpenTracing and your preferred Tracer (e.g. Jaeger).\n\nWhen a new request reaches a server, the middleware will start a root span that will be shared by the target FeathersJS service. Inner service calls will be nested under this root span, as long as you pass it to them.\n\nWith Jaeger tracer, the `X-Trace-Id` response header contains the trace ID that can be passed as `uber-trace-id` request header to other external services.\nWhen a request is received with `uber-trace-id` header, service spans will be nested under the span of that trace ID.\n\nUse `context.params.span` inside FeathersJS services to set custom tags or log custom events. for example:\n```javascript\ncontext.params.span.setTag('some.tag', value);\ncontext.params.span.log({ event: 'some_event', data: 'some data' });\n```\n\nSupported FeathersJS distributed modules:\n* [feathers-http-distributed](https://github.com/dekelev/feathers-http-distributed)\n* [feathers-distributed](https://github.com/kalisio/feathers-distributed)\n\n# Install\n\n```npm install --save feathers-opentracing```\n\n\n## Add Tracer (e.g. Jaeger)\n\nFor example:\n\n```javascript\n// config/default.json\n\n{\n  \"opentracing\": {  \n    \"serviceName\": \"app\",  \n    \"host\": \"localhost\",\n    \"options\": {\n      \"includedPrefixes\": [\"v1/\", \"v2/\"], // optional. default: trace all requests - Trace only requests with path prefixed by specified strings, i.e. v1/ \u0026 v2/\n      \"tag\": { // optional\n        \"requestHeaders\": false, // optional. default: true - tag `req.headers`\n        \"responseHeaders\": false, // optional. default: true - tag `res.getHeaders()`\n        \"id\": false, // optional. default: true - tag `context.id`\n        \"data\": { // optional. default: true - tag `context.data`\n          \"index\": true // optional. default: false - break JSON object or array to multiple tags. this option can be set for any JSON tag\n        },\n        \"query\": false, // optional. default: true - tag `context.params.query`\n        \"result\": true // optional. default: false - tag `context.dispatch` if set in the first service call or `context.result` otherwise\n      },\n      \"mask\": { // optional. default: mask is off\n        \"blacklist\": [\"password\"], // Mask values of all properties named 'password' from `context.data` \u0026 `context.params.query` (supports nested objects)\n        \"ignoreCase\": true, // optional. default: false - Whether to ignore case sensitivity when matching keys\n        \"replacement\": \"***\" // optional. default: '__MASKED__' - The default value to replace\n      },\n      \"hideErrors\": { // optional. default: all errors will be tagged with error=true and set with sampling priority 1\n        \"users\": [404, 409] // optional. don't tag selected services errors with error=true and don't set their sampling priority to 1. i.e. hide 404 \u0026 409 errors of the `users` service\n      },\n      \"debug\": true  // optional. default: false - Sets sampling priority to 1 to force sampling of all requests\n    } \n  }\n}\n```\n\n```javascript\n// src/opentracing.js\n\nconst opentracing = require('opentracing');  \nconst initTracer = require('jaeger-client').initTracer;  \nconst logger = require('winston');  \nconst config = require('config');  \n  \nmodule.exports = function () {  \n  opentracing.initGlobalTracer(initTracer({  \n    serviceName: config.opentracing.serviceName,  \n  }, {  \n    host: config.opentracing.host,  \n    logger,\n  }));  \n};\n```\n\n```javascript\n// src/app.js\n\nconst opentracing = require('./opentracing');\n\nopentracing();  \n\nconst app = express(feathers());\n```\n\n## Add middleware\n\n```javascript\n// src/middleware/index.js\n\nconst { opentracingMiddleware } = require('feathers-opentracing');\nconst config = require('config');\n\nmodule.exports = function () {  \n  ...\n  app.use((req, res, next) =\u003e {  \n    opentracingMiddleware(req, res, config.opentracing.options);  \n    next();  \n  });\n  ...\n};\n```\n\n## Add hooks\n\n```javascript\n// src/app.hooks.js\n\nconst { opentracingBegin, opentracingEnd, opentracingError } = require('feathers-opentracing');\n\nmodule.exports = {\n  before: {\n    all: [\n      opentracingBegin(config.opentracing.options),\n      ...\n    ],\n  },\n  \n  after: {\n    all: [\n      ...\n      opentracingEnd(config.opentracing.options),\n    ]\n  },\n  \n  error: {\n    all: [\n      ...\n      opentracingError(config.opentracing.options),\n    ]\n  },\n};\n```\n\n## Pass root span to inner service calls\n\n```javascript\nawait context.app.service('users').get(id, {\n  rootSpan: context.params.rootSpan,\n});\n```\n\n## Set error on span\nUse the `setOpentracingError` method when error is not thrown, but span should still be set with error.\n```javascript\nconst { setOpentracingError } = require('feathers-opentracing');\n\nsetOpentracingError(span, new Error('error message'));\n```\n\n## Mac OS X\nRun once `sudo sysctl -w net.inet.udp.maxdgram=65535` to prevent UDP buffer size errors.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdekelev%2Ffeathers-opentracing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdekelev%2Ffeathers-opentracing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdekelev%2Ffeathers-opentracing/lists"}