Socket
Socket
Sign inDemoInstall

dd-trace

Package Overview
Dependencies
18
Maintainers
3
Versions
558
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1-beta.0 to 0.2.1-beta.1

2

package.json
{
"name": "dd-trace",
"version": "0.2.1-beta.0",
"version": "0.2.1-beta.1",
"description": "Datadog APM tracing client for JavaScript (experimental)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -20,3 +20,3 @@ 'use strict'

this._context.run(() => {
const childOf = options.childOf || this._context.get('current')
const childOf = options.childOf !== undefined ? options.childOf : this._context.get('current')
const tags = Object.assign({

@@ -23,0 +23,0 @@ 'service.name': options.service || this._service,

@@ -59,2 +59,13 @@ 'use strict'

it('should support explicitly creating a root span', done => {
tracer = new Tracer(config)
tracer.trace('parent', parent => {
tracer.trace('child', { childOf: null }, child => {
expect(child.context()).to.have.property('parentId', null)
done()
})
})
})
it('should set default tags', done => {

@@ -61,0 +72,0 @@ tracer = new Tracer(config)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc