Skip to content

Commit c28765a

Browse files
authored
remove http.route from inferred proxy spans (#5132)
remove inferred http route
1 parent 37546ab commit c28765a

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

packages/dd-trace/src/plugins/util/inferred_proxy.js

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const log = require('../../log')
22
const tags = require('../../../../../ext/tags')
33

44
const RESOURCE_NAME = tags.RESOURCE_NAME
5-
const HTTP_ROUTE = tags.HTTP_ROUTE
65
const SPAN_KIND = tags.SPAN_KIND
76
const SPAN_TYPE = tags.SPAN_TYPE
87
const HTTP_URL = tags.HTTP_URL
@@ -54,7 +53,6 @@ function createInferredProxySpan (headers, childOf, tracer, context) {
5453
[SPAN_TYPE]: 'web',
5554
[HTTP_METHOD]: proxyContext.method,
5655
[HTTP_URL]: proxyContext.domainName + proxyContext.path,
57-
[HTTP_ROUTE]: proxyContext.path,
5856
stage: proxyContext.stage
5957
}
6058
}

packages/dd-trace/test/plugins/util/inferred_proxy.spec.js

-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ describe('Inferred Proxy Spans', function () {
8181
expect(spans[0].meta).to.have.property('http.url', 'example.com/test')
8282
expect(spans[0].meta).to.have.property('http.method', 'GET')
8383
expect(spans[0].meta).to.have.property('http.status_code', '200')
84-
expect(spans[0].meta).to.have.property('http.route', '/test')
8584
expect(spans[0].meta).to.have.property('span.kind', 'internal')
8685
expect(spans[0].meta).to.have.property('component', 'aws-apigateway')
8786
expect(spans[0].meta).to.have.property('_dd.inferred_span', '1')
@@ -130,7 +129,6 @@ describe('Inferred Proxy Spans', function () {
130129
expect(spans[0].meta).to.have.property('http.url', 'example.com/test')
131130
expect(spans[0].meta).to.have.property('http.method', 'GET')
132131
expect(spans[0].meta).to.have.property('http.status_code', '500')
133-
expect(spans[0].meta).to.have.property('http.route', '/test')
134132
expect(spans[0].meta).to.have.property('span.kind', 'internal')
135133
expect(spans[0].meta).to.have.property('component', 'aws-apigateway')
136134
expect(spans[0].error).to.be.equal(1)

0 commit comments

Comments
 (0)