Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
60ecb6e
feat(node): Allow selective tracking of `pino` loggers
timfish Oct 14, 2025
abdce67
fix(node): `pino` child loggers
timfish Oct 14, 2025
ad39cb4
Fix logic
timfish Oct 15, 2025
f23891a
Merge branch 'develop' into timfish/fix/pino-child-loggers
timfish Oct 15, 2025
e00cf68
Merge branch 'develop' into timfish/fix/pino-child-loggers
timfish Oct 15, 2025
536df18
Merge remote-tracking branch 'upstream/master' into timfish/fix/pino-…
timfish Oct 15, 2025
32cab77
Merge branch 'timfish/fix/pino-child-loggers' of github.com:getsentry…
timfish Oct 15, 2025
4308b37
docs: Update supported Angular version in README
guillaume-moreau Oct 14, 2025
908e4ec
fix(browser): Ignore React 19.2+ component render measure entries (#1…
Lms24 Oct 15, 2025
318ce67
feat(solid): Add support for TanStack Router Solid (#17735)
thedanchez Oct 15, 2025
715f12f
chore(ci): Update Next.js canary testing (#17939)
chargome Oct 15, 2025
1c4c62b
chore: Bump size limit (#17941)
chargome Oct 15, 2025
eb5a5a8
chore: Add external contributor to CHANGELOG.md (#17940)
HazAT Oct 15, 2025
e53277e
fix(react): Add `POP` guard for long-running `pageload` spans (#17867)
onurtemizkan Oct 15, 2025
d03fc61
fix(tracemetrics): Send boolean for internal replay attribute (#17908)
chargome Oct 15, 2025
6abafe3
meta(changelog): Update changelog for 10.20.0
chargome Oct 15, 2025
1b8de2e
Merge branch 'timfish/fix/pino-child-loggers' of github.com:getsentry…
timfish Oct 15, 2025
8eb3787
Child tests
timfish Oct 15, 2025
fe0a46e
Merge branch 'develop' into timfish/fix/pino-child-loggers
timfish Oct 16, 2025
1bc5b4f
No breaking changes!
timfish Oct 16, 2025
b25e47d
remove duplicate test
timfish Oct 16, 2025
fd0242a
Merge branch 'develop' into timfish/fix/pino-child-loggers
timfish Oct 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Child tests
  • Loading branch information
timfish committed Oct 16, 2025
commit 8eb3787d3e335515628023aeab8765184a067d93
38 changes: 0 additions & 38 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,6 @@

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

## 10.20.0

### Important Changes

- **feat(flags): Add Growthbook integration ([#17440](https://github.com/getsentry/sentry-javascript/pull/17440))**

Adds a new Growthbook integration for feature flag support.

- **feat(solid): Add support for TanStack Router Solid ([#17735](https://github.com/getsentry/sentry-javascript/pull/17735))**

Adds support for TanStack Router in the Solid SDK, enabling better routing instrumentation for Solid applications.

- **feat(nextjs): Support native debugIds in turbopack ([#17853](https://github.com/getsentry/sentry-javascript/pull/17853))**

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.

### Other Changes

- feat(nextjs): Prepare for next 16 bundler default ([#17868](https://github.com/getsentry/sentry-javascript/pull/17868))
- feat(node): Capture `pino` logger name ([#17930](https://github.com/getsentry/sentry-javascript/pull/17930))
- fix(browser): Ignore React 19.2+ component render measure entries ([#17905](https://github.com/getsentry/sentry-javascript/pull/17905))
- fix(nextjs): Fix createRouteManifest with basePath ([#17838](https://github.com/getsentry/sentry-javascript/pull/17838))
- fix(react): Add `POP` guard for long-running `pageload` spans ([#17867](https://github.com/getsentry/sentry-javascript/pull/17867))
- fix(tracemetrics): Send boolean for internal replay attribute ([#17908](https://github.com/getsentry/sentry-javascript/pull/17908))
- ref(core): Add weight tracking logic to browser logs/metrics ([#17901](https://github.com/getsentry/sentry-javascript/pull/17901))

<details>
<summary> <strong>Internal Changes</strong> </summary>
- chore(nextjs): Add Next.js 16 peer dependency ([#17925](https://github.com/getsentry/sentry-javascript/pull/17925))
- chore(ci): Update Next.js canary testing ([#17939](https://github.com/getsentry/sentry-javascript/pull/17939))
- chore: Bump size limit ([#17941](https://github.com/getsentry/sentry-javascript/pull/17941))
- test(nextjs): Add next@16 e2e test ([#17922](https://github.com/getsentry/sentry-javascript/pull/17922))
- test(nextjs): Update next 15 tests ([#17919](https://github.com/getsentry/sentry-javascript/pull/17919))
- chore: Add external contributor to CHANGELOG.md ([#17915](https://github.com/getsentry/sentry-javascript/pull/17915))
- chore: Add external contributor to CHANGELOG.md ([#17928](https://github.com/getsentry/sentry-javascript/pull/17928))
- chore: Add external contributor to CHANGELOG.md ([#17940](https://github.com/getsentry/sentry-javascript/pull/17940))
</details>

Work in this release was contributed by @seoyeon9888, @madhuchavva and @thedanchez . Thank you for your contributions!

## 10.19.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,18 @@ Sentry.withIsolationScope(() => {
setTimeout(() => {
Sentry.withIsolationScope(() => {
Sentry.startSpan({ name: 'later' }, () => {
logger.error(new Error('oh no'));
// This child should be captured as we marked the parent logger to be tracked
const child = logger.child({ module: 'authentication' });
child.error(new Error('oh no'));

// This child should be ignored
const child2 = logger.child({ module: 'authentication.v2' });
Sentry.pinoIntegration.ignoreLogger(child2);
child2.error(new Error('oh no v2'));

// This should also be ignored as the parent is ignored
const child3 = child2.child({ module: 'authentication.v3' });
child3.error(new Error('oh no v3'));
});
});
}, 1000);
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import pino from 'pino';
const logger = pino({ name: 'myapp' });

const ignoredLogger = pino({ name: 'ignored' });
Sentry.pinoIntegration.untrackLogger(ignoredLogger);
Sentry.pinoIntegration.ignoreLogger(ignoredLogger);

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

Expand Down
3 changes: 3 additions & 0 deletions dev-packages/node-integration-tests/suites/pino/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ conditionalTest({ min: 20 })('Pino integration', () => {
type: 'string',
value: '{"more":3,"complex":"nope"}',
},
msg: { value: 'hello world', type: 'string' },
'sentry.origin': { value: 'auto.logging.pino', type: 'string' },
'sentry.release': { value: '1.0', type: 'string' },
'sentry.sdk.name': { value: 'sentry.javascript.node', type: 'string' },
Expand All @@ -208,6 +209,8 @@ conditionalTest({ min: 20 })('Pino integration', () => {
severity_number: 17,
attributes: {
name: { value: 'myapp', type: 'string' },
module: { value: 'authentication', type: 'string' },
msg: { value: 'oh no', type: 'string' },
'pino.logger.level': { value: 50, type: 'integer' },
'sentry.origin': { value: 'auto.logging.pino', type: 'string' },
'sentry.release': { value: '1.0', type: 'string' },
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

## Angular Version Compatibility

This SDK officially supports Angular 14 to 20.
This SDK officially supports Angular 14 to 19.

If you're using an older Angular version please check the
[compatibility table in the docs](https://docs.sentry.io/platforms/javascript/guides/angular/#angular-version-compatibility).
Expand Down
8 changes: 4 additions & 4 deletions packages/node-core/src/integrations/pino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function stripIgnoredFields(result: PinoResult): PinoResult {

const _pinoIntegration = defineIntegration((userOptions: DeepPartial<PinoOptions> = {}) => {
const options: PinoOptions = {
autoInstrument: userOptions.autoInstrument === false ? userOptions.autoInstrument : DEFAULT_OPTIONS.autoInstrument,
autoInstrument: userOptions.autoInstrument !== false,
error: { ...DEFAULT_OPTIONS.error, ...userOptions.error },
log: { ...DEFAULT_OPTIONS.log, ...userOptions.log },
};
Expand Down Expand Up @@ -203,14 +203,14 @@ interface PinoIntegrationFunction {
*
* @param logger A Pino logger instance.
*/
untrackLogger(logger: unknown): void;
ignoreLogger(logger: unknown): void;
}

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