1
1
import * as SentryCore from '@sentry/core' ;
2
2
import { SentrySpan } from '@sentry/core' ;
3
3
4
- import { getTracingMetaTags , isValidBaggageString } from '../../src/utils/meta' ;
4
+ import { getTracingMetaTagValues , isValidBaggageString } from '../../src/utils/meta' ;
5
5
6
6
const TRACE_FLAG_SAMPLED = 1 ;
7
7
@@ -19,14 +19,14 @@ const mockedScope = {
19
19
} ) ,
20
20
} as any ;
21
21
22
- describe ( 'getTracingMetaTags ' , ( ) => {
22
+ describe ( 'getTracingMetaTagValues ' , ( ) => {
23
23
it ( 'returns the tracing meta tags from the span, if it is provided' , ( ) => {
24
24
{
25
25
jest . spyOn ( SentryCore , 'getDynamicSamplingContextFromSpan' ) . mockReturnValueOnce ( {
26
26
environment : 'production' ,
27
27
} ) ;
28
28
29
- const tags = getTracingMetaTags ( mockedSpan , mockedScope , mockedClient ) ;
29
+ const tags = getTracingMetaTagValues ( mockedSpan , mockedScope , mockedClient ) ;
30
30
31
31
expect ( tags ) . toEqual ( {
32
32
'sentry-trace' : '12345678901234567890123456789012-1234567890123456-1' ,
@@ -36,7 +36,7 @@ describe('getTracingMetaTags', () => {
36
36
} ) ;
37
37
38
38
it ( 'returns propagationContext DSC data if no span is available' , ( ) => {
39
- const tags = getTracingMetaTags (
39
+ const tags = getTracingMetaTagValues (
40
40
undefined ,
41
41
{
42
42
getPropagationContext : ( ) => ( {
@@ -65,7 +65,7 @@ describe('getTracingMetaTags', () => {
65
65
public_key : undefined ,
66
66
} ) ;
67
67
68
- const tags = getTracingMetaTags (
68
+ const tags = getTracingMetaTagValues (
69
69
// @ts -expect-error - we don't need to provide all the properties
70
70
{
71
71
isRecording : ( ) => true ,
@@ -92,7 +92,7 @@ describe('getTracingMetaTags', () => {
92
92
public_key : undefined ,
93
93
} ) ;
94
94
95
- const tags = getTracingMetaTags (
95
+ const tags = getTracingMetaTagValues (
96
96
// @ts -expect-error - we don't need to provide all the properties
97
97
{
98
98
isRecording : ( ) => true ,
0 commit comments