Repository navigation
fix(cli): stop Sentry warning on every run of the Bun binary - #424
Merged
Merged
Conversation
Telemetry kept all Sentry default integrations except a denylist, which included web framework integrations. Under Bun they can't be injected and Sentry warns "No diagnostics-channel injection detected" on every command. Switch to an allowlist of the integrations error reporting needs. Assisted-by: Claude Opus 5.5 via Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
[Medium impact] The PR appears safe to merge. SummaryThe CLI now selects Sentry integrations from an explicit allowlist to avoid framework-related warnings in the Bun binary.
No actionable issues found. Tests were not run because dependencies are not installed. Reviews (1) · Last reviewed commit: "fix(cli): stop Sentry warning on every r..." · Reviewed by Greptile |
MantasMiksys
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The standalone
tigrisbinary (built withbun build --compile) prints this on every command:Telemetry kept every Sentry default integration except a denylist. The defaults include Express, Fastify, Hapi, Hono, Koa and Nitro integrations, which instrument those libraries through diagnostics channels. Bun can't inject those, so
init()warns on stderr. Under Node the same check is only a debug log, so the npm-installed CLI is quiet.Change
selectIntegrationsnow keeps an allowlist,ENABLED_INTEGRATIONS: EventFilters, FunctionToString, LinkedErrors, Dedupe, NodeSystemError, Http, NodeFetch, WorkerThreads and Modules. That is what we kept before, minus the six framework integrations and the server-only RequestData, ConversationId and AwsLambdaWeb. New Sentry releases keep adding defaults (databases, AI libraries), so an allowlist stops the next one from bringing the warning back. The reasons for leaving out the user-data and exit-delaying integrations stay in the comment.Testing
build:binary:current(@sentry/node11.14.0, Bun 1.3.9):./bin/tigris whoamiprinted the warning before the change and doesn't after.🤖 Generated with Claude Code
Note
Low Risk
Telemetry-only change with tightened Sentry integration selection; behavior is covered by unit tests and should not affect CLI command logic.
Overview
Switches CLI Sentry setup from a denylist (
DISABLED_INTEGRATIONS) to an allowlist (ENABLED_INTEGRATIONS) soselectIntegrationsonly turns on integrations needed for crash reporting (EventFilters, Http, LinkedErrors, etc.).That stops the Bun-compiled
tigrisbinary from emitting the recurring "No diagnostics-channel injection detected" warning: new SDK defaults for server frameworks (Express, Fastify, etc.) are no longer enabled by default, and future defaults won't slip through a denylist.Tests now assert every allowlisted name still exists in Sentry defaults, and that user-data, exit-delaying, and framework integrations stay off.
Reviewed by Cursor Bugbot for commit 3171892. Bugbot is set up for automated code reviews on this repo. Configure here.