
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
@bookmate/zipkin-express-helpers
Advanced tools
Add zipkin headers to Express request object and read them back
Instruments for adding zipkin headers to an Express request object and for reading them back.
npm install --save @bookmate/zipkin-express-helpers
If all you need is just to add zipkin headers to requests in Express (e.g. if you are using Express as a proxy), the most convenient way is to use a middleware:
const express = require('express');
const { createZipkinExpressMiddleware } = require('@bookmate/zipkin-express-helpers');
const localServiceName = 'name of this application';
const app = express();
app.use(createZipkinExpressMiddleware({localServiceName}));
For more fine-grained control, you may want to use ZipkinRequestDecorator (which is used in the middleware):
const express = require('express');
const { ZipkinRequestDecorator } = require('@bookmate/zipkin-express-helpers');
const localServiceName = 'name of this application';
const zipkinRequestDecorator = new ZipkinRequestDecorator({ localServiceName });
const customMiddleware = (req, res, next) => {
zipkinRequestDecorator.addZipkinHeadersToRequest(req);
// some custom logic
next();
}
const app = express();
app.use(customMiddleware);
To read zipkin headers from a request, use readZipkinHeadersFromRequest
function:
const { readZipkinHeadersFromRequest } = require('@bookmate/zipkin-express-helpers');
function myFunc(req) {
const zipkinHeaders = readZipkinHeadersFromRequest(req);
// do something with the headers
}
FAQs
Add zipkin headers to Express request object and read them back
The npm package @bookmate/zipkin-express-helpers receives a total of 0 weekly downloads. As such, @bookmate/zipkin-express-helpers popularity was classified as not popular.
We found that @bookmate/zipkin-express-helpers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.