
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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' })
var app = express()
app.get('/user/:id', (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 185 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.