Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@logzio-node-toolbox/tracer
Advanced tools
create a tracer by passing configuration with build-in defaults. params: serviceName - string (node-js) tags - object | key value of tags to add to each span carrierType - string (http-header) | opentracing carrier types debug - boolean (false) | print spans on finish, and set sampler to 1 const 1 shouldIgnore - function | ignore spans by the operation name onStartSpan - function | will call function with created span onFinishSpan - function | will call function before closing the span exporterOptions - object | configure the exporter type - string (const) | jaeger exporter types probability - number (1) | jaeger exporter probability host - string (localhost) | jaeger exporter host port - number (6832) | jaeger exporter port interval - number (2000) | jaeger exporter flush interval
import { Tracer } from '@logzio-node-toolbox/tracer;
const config = {
serviceName: 'client-api',
exporterOptions: {
host: '127.0.13.1',
interval: 5000,
},
tags: {
region: 'us',
},
shouldIgnore: (url) => {
if url.includes('ignore path') return true;
return false;
},
onStartSpan: (span) => {
span.addTag()
}
}
const tracer = new Tracer(config);
const span = tracer.startSpan({operation: 'operationName', tags: { default: 'tags for this span' }, carrier: req.headers });
tracer.finishSpan({ span: span, tags: { default: 'tags for finish span' }});
FAQs
multi-functional trace
The npm package @logzio-node-toolbox/tracer receives a total of 2,075 weekly downloads. As such, @logzio-node-toolbox/tracer popularity was classified as popular.
We found that @logzio-node-toolbox/tracer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 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.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.