@@ -20,6 +20,7 @@ describe('getDynamicSamplingContextFromSpan', () => {
20
20
} ) ;
21
21
22
22
test ( 'returns the DSC provided during transaction creation' , ( ) => {
23
+ // eslint-disable-next-line deprecation/deprecation
23
24
const transaction = new Transaction ( {
24
25
name : 'tx' ,
25
26
metadata : { dynamicSamplingContext : { environment : 'myEnv' } } ,
@@ -67,6 +68,7 @@ describe('getDynamicSamplingContextFromSpan', () => {
67
68
} ) ;
68
69
69
70
test ( 'returns a new DSC, if no DSC was provided during transaction creation (via new Txn and deprecated metadata)' , ( ) => {
71
+ // eslint-disable-next-line deprecation/deprecation
70
72
const transaction = new Transaction ( {
71
73
name : 'tx' ,
72
74
metadata : {
@@ -90,6 +92,7 @@ describe('getDynamicSamplingContextFromSpan', () => {
90
92
91
93
describe ( 'Including transaction name in DSC' , ( ) => {
92
94
test ( 'is not included if transaction source is url' , ( ) => {
95
+ // eslint-disable-next-line deprecation/deprecation
93
96
const transaction = new Transaction ( {
94
97
name : 'tx' ,
95
98
metadata : {
@@ -106,6 +109,7 @@ describe('getDynamicSamplingContextFromSpan', () => {
106
109
[ 'is included if transaction source is parameterized route/url' , 'route' ] ,
107
110
[ 'is included if transaction source is a custom name' , 'custom' ] ,
108
111
] ) ( '%s' , ( _ : string , source ) => {
112
+ // eslint-disable-next-line deprecation/deprecation
109
113
const transaction = new Transaction ( {
110
114
name : 'tx' ,
111
115
metadata : {
0 commit comments