dd-trace 2.16.0 → 2.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dd-trace",
3
- "version": "2.16.0",
3
+ "version": "2.16.1",
4
4
  "description": "Datadog APM tracing client for JavaScript",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
@@ -66,7 +66,7 @@
66
66
  "crypto-randomuuid": "^1.0.0",
67
67
  "diagnostics_channel": "^1.1.0",
68
68
  "ignore": "^5.2.0",
69
- "import-in-the-middle": "^1.3.3",
69
+ "import-in-the-middle": "^1.3.4",
70
70
  "ipaddr.js": "^2.0.1",
71
71
  "istanbul-lib-coverage": "3.2.0",
72
72
  "koalas": "^1.0.2",
@@ -44,6 +44,9 @@ class DatadogSpan {
44
44
  metrics.increment('runtime.node.spans.unfinished')
45
45
  metrics.increment('runtime.node.spans.unfinished.by.name', `span_name:${operationName}`)
46
46
 
47
+ metrics.increment('runtime.node.spans.open') // unfinished for real
48
+ metrics.increment('runtime.node.spans.open.by.name', `span_name:${operationName}`)
49
+
47
50
  unfinishedRegistry.register(this, operationName, this)
48
51
  }
49
52
  }
@@ -121,6 +124,9 @@ class DatadogSpan {
121
124
  metrics.increment('runtime.node.spans.finished')
122
125
  metrics.increment('runtime.node.spans.finished.by.name', `span_name:${this._name}`)
123
126
 
127
+ metrics.decrement('runtime.node.spans.open') // unfinished for real
128
+ metrics.decrement('runtime.node.spans.open.by.name', `span_name:${this._name}`)
129
+
124
130
  unfinishedRegistry.unregister(this)
125
131
  finishedRegistry.register(this, this._name)
126
132
  }