Skip to content

Commit 051a840

Browse files
w01fgangclaude
andcommitted
docs: comment library tag override order (IN-02)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 88dd0fb commit 051a840

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/adapters/browser/reporter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export class BrowserReporter implements Reporter {
1212
: error;
1313

1414
Sentry.captureException(errorToReport, {
15+
// `library` is injected last so user-supplied `tags` cannot shadow our provenance signal
1516
tags: { ...config.tags, library: '@power-rent/try-catch' },
1617
});
1718
}

src/adapters/node/reporter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export class NodeReporter implements Reporter {
1212
: error;
1313

1414
Sentry.captureException(errorToReport, {
15+
// `library` is injected last so user-supplied `tags` cannot shadow our provenance signal
1516
tags: { ...config.tags, library: '@power-rent/try-catch' },
1617
});
1718
}

src/nextjs/SentryReporter.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export class SentryReporter implements Reporter {
1515
: error;
1616

1717
Sentry.captureException(errorToReport, {
18+
// `library` is injected last so user-supplied `tags` cannot shadow our provenance signal
1819
tags: { ...config.tags, library: '@power-rent/try-catch' },
1920
});
2021
}

0 commit comments

Comments
 (0)