Skip to content

Commit 8eb3787

Browse files
committed
Child tests
1 parent 1b8de2e commit 8eb3787

File tree

6 files changed

+21
-45
lines changed

6 files changed

+21
-45
lines changed

CHANGELOG.md

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

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

7-
## 10.20.0
8-
9-
### Important Changes
10-
11-
- **feat(flags): Add Growthbook integration ([#17440](https://github.com/getsentry/sentry-javascript/pull/17440))**
12-
13-
Adds a new Growthbook integration for feature flag support.
14-
15-
- **feat(solid): Add support for TanStack Router Solid ([#17735](https://github.com/getsentry/sentry-javascript/pull/17735))**
16-
17-
Adds support for TanStack Router in the Solid SDK, enabling better routing instrumentation for Solid applications.
18-
19-
- **feat(nextjs): Support native debugIds in turbopack ([#17853](https://github.com/getsentry/sentry-javascript/pull/17853))**
20-
21-
Adds support for native Debug IDs in Turbopack, improving source map resolution and error tracking for Next.js applications using Turbopack. Native Debug ID generation will be enabled automatically for compatible versions.
22-
23-
### Other Changes
24-
25-
- feat(nextjs): Prepare for next 16 bundler default ([#17868](https://github.com/getsentry/sentry-javascript/pull/17868))
26-
- feat(node): Capture `pino` logger name ([#17930](https://github.com/getsentry/sentry-javascript/pull/17930))
27-
- fix(browser): Ignore React 19.2+ component render measure entries ([#17905](https://github.com/getsentry/sentry-javascript/pull/17905))
28-
- fix(nextjs): Fix createRouteManifest with basePath ([#17838](https://github.com/getsentry/sentry-javascript/pull/17838))
29-
- fix(react): Add `POP` guard for long-running `pageload` spans ([#17867](https://github.com/getsentry/sentry-javascript/pull/17867))
30-
- fix(tracemetrics): Send boolean for internal replay attribute ([#17908](https://github.com/getsentry/sentry-javascript/pull/17908))
31-
- ref(core): Add weight tracking logic to browser logs/metrics ([#17901](https://github.com/getsentry/sentry-javascript/pull/17901))
32-
33-
<details>
34-
<summary> <strong>Internal Changes</strong> </summary>
35-
- chore(nextjs): Add Next.js 16 peer dependency ([#17925](https://github.com/getsentry/sentry-javascript/pull/17925))
36-
- chore(ci): Update Next.js canary testing ([#17939](https://github.com/getsentry/sentry-javascript/pull/17939))
37-
- chore: Bump size limit ([#17941](https://github.com/getsentry/sentry-javascript/pull/17941))
38-
- test(nextjs): Add next@16 e2e test ([#17922](https://github.com/getsentry/sentry-javascript/pull/17922))
39-
- test(nextjs): Update next 15 tests ([#17919](https://github.com/getsentry/sentry-javascript/pull/17919))
40-
- chore: Add external contributor to CHANGELOG.md ([#17915](https://github.com/getsentry/sentry-javascript/pull/17915))
41-
- chore: Add external contributor to CHANGELOG.md ([#17928](https://github.com/getsentry/sentry-javascript/pull/17928))
42-
- chore: Add external contributor to CHANGELOG.md ([#17940](https://github.com/getsentry/sentry-javascript/pull/17940))
43-
</details>
44-
457
Work in this release was contributed by @seoyeon9888, @madhuchavva and @thedanchez . Thank you for your contributions!
468

479
## 10.19.0

dev-packages/node-integration-tests/suites/pino/scenario-track.mjs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,18 @@ Sentry.withIsolationScope(() => {
1717
setTimeout(() => {
1818
Sentry.withIsolationScope(() => {
1919
Sentry.startSpan({ name: 'later' }, () => {
20-
logger.error(new Error('oh no'));
20+
// This child should be captured as we marked the parent logger to be tracked
21+
const child = logger.child({ module: 'authentication' });
22+
child.error(new Error('oh no'));
23+
24+
// This child should be ignored
25+
const child2 = logger.child({ module: 'authentication.v2' });
26+
Sentry.pinoIntegration.ignoreLogger(child2);
27+
child2.error(new Error('oh no v2'));
28+
29+
// This should also be ignored as the parent is ignored
30+
const child3 = child2.child({ module: 'authentication.v3' });
31+
child3.error(new Error('oh no v3'));
2132
});
2233
});
2334
}, 1000);

dev-packages/node-integration-tests/suites/pino/scenario.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import pino from 'pino';
44
const logger = pino({ name: 'myapp' });
55

66
const ignoredLogger = pino({ name: 'ignored' });
7-
Sentry.pinoIntegration.untrackLogger(ignoredLogger);
7+
Sentry.pinoIntegration.ignoreLogger(ignoredLogger);
88

99
ignoredLogger.info('this will not be tracked');
1010

dev-packages/node-integration-tests/suites/pino/test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ conditionalTest({ min: 20 })('Pino integration', () => {
195195
type: 'string',
196196
value: '{"more":3,"complex":"nope"}',
197197
},
198+
msg: { value: 'hello world', type: 'string' },
198199
'sentry.origin': { value: 'auto.logging.pino', type: 'string' },
199200
'sentry.release': { value: '1.0', type: 'string' },
200201
'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' },
@@ -208,6 +209,8 @@ conditionalTest({ min: 20 })('Pino integration', () => {
208209
severity_number: 17,
209210
attributes: {
210211
name: { value: 'myapp', type: 'string' },
212+
module: { value: 'authentication', type: 'string' },
213+
msg: { value: 'oh no', type: 'string' },
211214
'pino.logger.level': { value: 50, type: 'integer' },
212215
'sentry.origin': { value: 'auto.logging.pino', type: 'string' },
213216
'sentry.release': { value: '1.0', type: 'string' },

packages/angular/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
## Angular Version Compatibility
1818

19-
This SDK officially supports Angular 14 to 20.
19+
This SDK officially supports Angular 14 to 19.
2020

2121
If you're using an older Angular version please check the
2222
[compatibility table in the docs](https://docs.sentry.io/platforms/javascript/guides/angular/#angular-version-compatibility).

packages/node-core/src/integrations/pino.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function stripIgnoredFields(result: PinoResult): PinoResult {
9797

9898
const _pinoIntegration = defineIntegration((userOptions: DeepPartial<PinoOptions> = {}) => {
9999
const options: PinoOptions = {
100-
autoInstrument: userOptions.autoInstrument === false ? userOptions.autoInstrument : DEFAULT_OPTIONS.autoInstrument,
100+
autoInstrument: userOptions.autoInstrument !== false,
101101
error: { ...DEFAULT_OPTIONS.error, ...userOptions.error },
102102
log: { ...DEFAULT_OPTIONS.log, ...userOptions.log },
103103
};
@@ -203,14 +203,14 @@ interface PinoIntegrationFunction {
203203
*
204204
* @param logger A Pino logger instance.
205205
*/
206-
untrackLogger(logger: unknown): void;
206+
ignoreLogger(logger: unknown): void;
207207
}
208208

209209
/**
210210
* Integration for Pino logging library.
211211
* Captures Pino logs as Sentry logs and optionally captures some log levels as events.
212212
*
213-
* By default, all Pino loggers will be captured. To ignore a specific logger, use `pinoIntegration.untrackLogger(logger)`.
213+
* By default, all Pino loggers will be captured. To ignore a specific logger, use `pinoIntegration.ignoreLogger(logger)`.
214214
*
215215
* If you disable automatic instrumentation with `autoInstrument: false`, you can mark specific loggers to be tracked with `pinoIntegration.trackLogger(logger)`.
216216
*
@@ -222,7 +222,7 @@ export const pinoIntegration = Object.assign(_pinoIntegration, {
222222
(logger as Pino)[SENTRY_TRACK_SYMBOL] = 'track';
223223
}
224224
},
225-
untrackLogger(logger: unknown): void {
225+
ignoreLogger(logger: unknown): void {
226226
if (logger && typeof logger === 'object' && 'levels' in logger) {
227227
(logger as Pino)[SENTRY_TRACK_SYMBOL] = 'ignore';
228228
}

0 commit comments

Comments
 (0)