11import * as SentryCore from '@sentry/core' ;
22import { SentrySpan } from '@sentry/core' ;
33
4- import { getTracingMetaTags , isValidBaggageString } from '../../src/utils/meta' ;
4+ import { getTracingMetaTagValues , isValidBaggageString } from '../../src/utils/meta' ;
55
66const TRACE_FLAG_SAMPLED = 1 ;
77
@@ -19,14 +19,14 @@ const mockedScope = {
1919 } ) ,
2020} as any ;
2121
22- describe ( 'getTracingMetaTags ' , ( ) => {
22+ describe ( 'getTracingMetaTagValues ' , ( ) => {
2323 it ( 'returns the tracing meta tags from the span, if it is provided' , ( ) => {
2424 {
2525 jest . spyOn ( SentryCore , 'getDynamicSamplingContextFromSpan' ) . mockReturnValueOnce ( {
2626 environment : 'production' ,
2727 } ) ;
2828
29- const tags = getTracingMetaTags ( mockedSpan , mockedScope , mockedClient ) ;
29+ const tags = getTracingMetaTagValues ( mockedSpan , mockedScope , mockedClient ) ;
3030
3131 expect ( tags ) . toEqual ( {
3232 'sentry-trace' : '12345678901234567890123456789012-1234567890123456-1' ,
@@ -36,7 +36,7 @@ describe('getTracingMetaTags', () => {
3636 } ) ;
3737
3838 it ( 'returns propagationContext DSC data if no span is available' , ( ) => {
39- const tags = getTracingMetaTags (
39+ const tags = getTracingMetaTagValues (
4040 undefined ,
4141 {
4242 getPropagationContext : ( ) => ( {
@@ -65,7 +65,7 @@ describe('getTracingMetaTags', () => {
6565 public_key : undefined ,
6666 } ) ;
6767
68- const tags = getTracingMetaTags (
68+ const tags = getTracingMetaTagValues (
6969 // @ts -expect-error - we don't need to provide all the properties
7070 {
7171 isRecording : ( ) => true ,
@@ -92,7 +92,7 @@ describe('getTracingMetaTags', () => {
9292 public_key : undefined ,
9393 } ) ;
9494
95- const tags = getTracingMetaTags (
95+ const tags = getTracingMetaTagValues (
9696 // @ts -expect-error - we don't need to provide all the properties
9797 {
9898 isRecording : ( ) => true ,
0 commit comments