From a648881f0dacc290ed4f3838f81a65789e39f4bd Mon Sep 17 00:00:00 2001 From: William Conti Date: Thu, 13 Feb 2025 15:19:20 -0500 Subject: [PATCH] metric --- packages/dd-trace/src/plugins/util/inferred_proxy.js | 2 +- packages/dd-trace/test/plugins/util/inferred_proxy.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dd-trace/src/plugins/util/inferred_proxy.js b/packages/dd-trace/src/plugins/util/inferred_proxy.js index 9d6c7819843..5ee1664ceb5 100644 --- a/packages/dd-trace/src/plugins/util/inferred_proxy.js +++ b/packages/dd-trace/src/plugins/util/inferred_proxy.js @@ -69,7 +69,7 @@ function createInferredProxySpan (headers, childOf, tracer, context) { function setInferredProxySpanTags (span, proxyContext) { span.setTag(RESOURCE_NAME, `${proxyContext.method} ${proxyContext.path}`) - span.setTag('_dd.inferred_span', '1') + span.setTag('_dd.inferred_span', 1) return span } diff --git a/packages/dd-trace/test/plugins/util/inferred_proxy.spec.js b/packages/dd-trace/test/plugins/util/inferred_proxy.spec.js index 17f3da6a6e6..51d33f84389 100644 --- a/packages/dd-trace/test/plugins/util/inferred_proxy.spec.js +++ b/packages/dd-trace/test/plugins/util/inferred_proxy.spec.js @@ -82,7 +82,7 @@ describe('Inferred Proxy Spans', function () { expect(spans[0].meta).to.have.property('http.method', 'GET') expect(spans[0].meta).to.have.property('http.status_code', '200') expect(spans[0].meta).to.have.property('component', 'aws-apigateway') - expect(spans[0].meta).to.have.property('_dd.inferred_span', '1') + expect(spans[0].metrics).to.have.property('_dd.inferred_span', 1) expect(spans[0].start.toString()).to.be.equal('1729780025472999936') expect(spans[0].span_id.toString()).to.be.equal(spans[1].parent_id.toString())