File tree Expand file tree Collapse file tree
packages/core/src/tracing/spans Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type { Client } from '../../client';
22import type { DynamicSamplingContext , SpanContainerItem , StreamedSpanEnvelope } from '../../types-hoist/envelope' ;
33import type { SerializedSpan } from '../../types-hoist/span' ;
44import { dsnToString } from '../../utils/dsn' ;
5- import { createEnvelope } from '../../utils/envelope' ;
5+ import { createEnvelope , getSdkMetadataForEnvelopeHeader } from '../../utils/envelope' ;
66
77/**
88 * Creates a span v2 span streaming envelope
@@ -14,7 +14,7 @@ export function createStreamedSpanEnvelope(
1414) : StreamedSpanEnvelope {
1515 const dsn = client . getDsn ( ) ;
1616 const tunnel = client . getOptions ( ) . tunnel ;
17- const sdk = client . getOptions ( ) . _metadata ?. sdk ;
17+ const sdk = getSdkMetadataForEnvelopeHeader ( client . getOptions ( ) . _metadata ) ;
1818
1919 const headers : StreamedSpanEnvelope [ 0 ] = {
2020 sent_at : new Date ( ) . toISOString ( ) ,
You can’t perform that action at this time.
0 commit comments