Skip to content

Commit cb799d4

Browse files
authored
Merge pull request #8524 from getsentry/prepare-release/7.58.1
meta(changelog): Update changelog for 7.58.1
2 parents 7327682 + e8113fe commit cb799d4

File tree

6 files changed

+16
-60
lines changed

6 files changed

+16
-60
lines changed

.github/workflows/stale.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7+
## 7.58.1
8+
9+
- fix(node): Set propagation context even when tracingOptions are not defined (#8517)
10+
711
## 7.58.0
812

913
### Important Changes

packages/browser-integration-tests/suites/replay/slowClick/multiClick/test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ sentryTest('captures multi click when not detecting slow click', async ({ getLoc
6464
]);
6565
});
6666

67-
sentryTest('captures multiple multi clicks', async ({ getLocalTestUrl, page, forceFlushReplay }) => {
68-
if (shouldSkipReplayTest()) {
67+
sentryTest('captures multiple multi clicks', async ({ getLocalTestUrl, page, forceFlushReplay, browserName }) => {
68+
// This test seems to only be flakey on firefox and webkit
69+
if (shouldSkipReplayTest() || ['firefox', 'webkit'].includes(browserName)) {
6970
sentryTest.skip();
7071
}
7172

packages/core/test/lib/base.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,7 @@ describe('BaseClient', () => {
16731673
}),
16741674
);
16751675

1676-
// @ts-ignore
1676+
// @ts-expect-error Accessing private transport API
16771677
const mockSend = jest.spyOn(client._transport, 'send');
16781678

16791679
const errorEvent: Event = { message: 'error' };
@@ -1701,7 +1701,7 @@ describe('BaseClient', () => {
17011701
}),
17021702
);
17031703

1704-
// @ts-ignore
1704+
// @ts-expect-error Accessing private transport API
17051705
const mockSend = jest.spyOn(client._transport, 'send');
17061706

17071707
const transactionEvent: Event = { type: 'transaction', event_id: 'tr1' };
@@ -1731,7 +1731,7 @@ describe('BaseClient', () => {
17311731
}),
17321732
);
17331733

1734-
// @ts-ignore
1734+
// @ts-expect-error Accessing private transport API
17351735
const mockSend = jest.spyOn(client._transport, 'send').mockImplementation(() => {
17361736
return Promise.reject('send error');
17371737
});
@@ -1763,7 +1763,7 @@ describe('BaseClient', () => {
17631763
}),
17641764
);
17651765

1766-
// @ts-ignore
1766+
// @ts-expect-error Accessing private transport API
17671767
const mockSend = jest.spyOn(client._transport, 'send').mockImplementation(() => {
17681768
return Promise.resolve({ statusCode: 200 });
17691769
});

packages/node/src/handlers.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,6 @@ export function tracingHandler(): (
5353
return next();
5454
}
5555

56-
if (!hasTracingEnabled(options)) {
57-
__DEBUG_BUILD__ &&
58-
logger.warn(
59-
'Sentry `tracingHandler` is being used, but tracing is disabled. Please enable tracing by setting ' +
60-
'either `tracesSampleRate` or `tracesSampler` in your `Sentry.init()` options.',
61-
);
62-
return next();
63-
}
64-
6556
const sentryTrace = req.headers && isString(req.headers['sentry-trace']) ? req.headers['sentry-trace'] : undefined;
6657
const baggage = req.headers?.baggage;
6758
const { traceparentData, dynamicSamplingContext, propagationContext } = tracingContextFromHeaders(
@@ -70,6 +61,10 @@ export function tracingHandler(): (
7061
);
7162
hub.getScope().setPropagationContext(propagationContext);
7263

64+
if (!hasTracingEnabled(options)) {
65+
return next();
66+
}
67+
7368
const [name, source] = extractPathForTransaction(req, { path: true, method: true });
7469
const transaction = startTransaction(
7570
{

packages/tracing-internal/src/node/integrations/prisma.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export class Prisma implements Integration {
6565
// https://github.com/getsentry/sentry-javascript/issues/7216#issuecomment-1602375012
6666
// In the future we might explore providing a dedicated PrismaClient middleware instead of this hack.
6767
if (isValidPrismaClient(options.client) && !options.client._sentryInstrumented) {
68+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6869
addNonEnumerableProperty(options.client as any, '_sentryInstrumented', true);
6970

7071
options.client.$use((params, next: (params: PrismaMiddlewareParams) => Promise<unknown>) => {

0 commit comments

Comments
 (0)