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.
datadog-tracer
Advanced tools
OpenTracing tracer implementation for Datadog in JavaScript. It is intended for use both on the server and (soon) in the browser.
npm install --save datadog-tracer
Node >= 4 is required.
Not yet supported
See the OpenTracing JavaScript documentation for more information.
var express = require('express')
var Tracer = require('datadog-tracer')
var tracer = new Tracer({ service: 'my service' })
// handle errors from Datadog agent. omit this if you want to ignore errors
tracer.on('error', function (e) {
console.log(e)
})
var app = express()
app.get('/user/:id', function (req, res) {
var span = tracer.startSpan('someOperation')
// do stuff
span.addTags({
'resource': '/user/:id', // required by Datadog
'type': 'web', // required by Datadog
'span.kind': 'server',
'http.method': 'GET',
'http.url': '/user/123',
'http.status_code': '200'
})
span.finish()
res.send()
})
See the semantic conventions for more information about tags.
See the OpenTracing JavaScript API
FAQs
[DEPRECATED] OpenTracing Tracer implementation for Datadog in JavaScript
The npm package datadog-tracer receives a total of 202 weekly downloads. As such, datadog-tracer popularity was classified as not popular.
We found that datadog-tracer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.