We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57f8a10 commit c13a044Copy full SHA for c13a044
1 file changed
packages/dd-trace/src/telemetry/metrics.js
@@ -27,13 +27,18 @@ function hasPoints (metric) {
27
return metric.points.length > 0
28
}
29
30
+let versionTag
31
+
32
class Metric {
33
constructor (namespace, metric, common, tags) {
34
this.namespace = namespace.toString()
35
this.metric = common ? metric : `nodejs.${metric}`
36
this.tags = tagArray(tags)
37
if (common) {
- this.tags.push(`version:${process.version}`)
38
+ if (versionTag === undefined) {
39
+ versionTag = `version:${process.version}`
40
+ }
41
+ this.tags.push(versionTag)
42
43
this.common = common
44
0 commit comments