Skip to content

Commit

Permalink
metric
Browse files Browse the repository at this point in the history
  • Loading branch information
wconti27 committed Feb 13, 2025
1 parent ac30966 commit a648881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/dd-trace/src/plugins/util/inferred_proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion packages/dd-trace/test/plugins/util/inferred_proxy.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit a648881

Please sign in to comment.