From 1005ba9c4caf7f98739c8d42c5552d264478e305 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Wed, 10 Jan 2024 13:03:13 +0100 Subject: [PATCH] meta: Ignore `Transaction` deprecation lint warnings in DSC tests (#10133) Currently fails develop. --- packages/core/test/lib/tracing/dynamicSamplingContext.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/core/test/lib/tracing/dynamicSamplingContext.test.ts b/packages/core/test/lib/tracing/dynamicSamplingContext.test.ts index 06a061612eda..da8bf1595e21 100644 --- a/packages/core/test/lib/tracing/dynamicSamplingContext.test.ts +++ b/packages/core/test/lib/tracing/dynamicSamplingContext.test.ts @@ -20,6 +20,7 @@ describe('getDynamicSamplingContextFromSpan', () => { }); test('returns the DSC provided during transaction creation', () => { + // eslint-disable-next-line deprecation/deprecation const transaction = new Transaction({ name: 'tx', metadata: { dynamicSamplingContext: { environment: 'myEnv' } }, @@ -67,6 +68,7 @@ describe('getDynamicSamplingContextFromSpan', () => { }); test('returns a new DSC, if no DSC was provided during transaction creation (via new Txn and deprecated metadata)', () => { + // eslint-disable-next-line deprecation/deprecation const transaction = new Transaction({ name: 'tx', metadata: { @@ -90,6 +92,7 @@ describe('getDynamicSamplingContextFromSpan', () => { describe('Including transaction name in DSC', () => { test('is not included if transaction source is url', () => { + // eslint-disable-next-line deprecation/deprecation const transaction = new Transaction({ name: 'tx', metadata: { @@ -106,6 +109,7 @@ describe('getDynamicSamplingContextFromSpan', () => { ['is included if transaction source is parameterized route/url', 'route'], ['is included if transaction source is a custom name', 'custom'], ])('%s', (_: string, source) => { + // eslint-disable-next-line deprecation/deprecation const transaction = new Transaction({ name: 'tx', metadata: {