Skip to content

Commit b0236ec

Browse files
ida613BridgeAR
andauthored
Update packages/dd-trace/src/opentelemetry/otlp/otlp_http_exporter_base.js
Co-authored-by: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 6d0218f commit b0236ec

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/dd-trace/src/opentelemetry/otlp/otlp_http_exporter_base.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ class OtlpHttpExporterBase {
128128
this.options.port = parsedUrl.port
129129
this.options.path = parsedUrl.pathname + parsedUrl.search
130130
this.#transport = parsedUrl.protocol === 'http:' ? http : https
131+
if (this.telemetryTags !== undefined) {
132+
this.telemetryTags[0] = `protocol:${this.#transport === https ? 'https' : 'http'}`
133+
}
131134
}
132135

133136
/**

0 commit comments

Comments
 (0)