We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a7c793 commit 3ccddafCopy full SHA for 3ccddaf
packages/opentelemetry/src/propagator.ts
@@ -329,7 +329,7 @@ function getExistingBaggage(carrier: unknown): string | undefined {
329
* 2. Else, if the active span has no URL attribute (e.g. it is unsampled), we check a special trace state (which we set in our sampler).
330
*/
331
function getCurrentURL(span: Span): string | undefined {
332
- const urlAttribute = spanToJSON(span).data?.[SemanticAttributes.HTTP_URL];
+ const urlAttribute = spanToJSON(span).data?.[SEMATTRS_HTTP_URL];
333
if (urlAttribute) {
334
return urlAttribute;
335
}
0 commit comments