Skip to content

Commit

Permalink
meta: Ignore Transaction deprecation lint warnings in DSC tests (#1…
Browse files Browse the repository at this point in the history
…0133)

Currently fails develop.
  • Loading branch information
lforst committed Jan 10, 2024
1 parent 1a7ea9b commit 1005ba9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/test/lib/tracing/dynamicSamplingContext.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' } },
Expand Down Expand Up @@ -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: {
Expand All @@ -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: {
Expand All @@ -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: {
Expand Down

0 comments on commit 1005ba9

Please sign in to comment.