Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
The v7 migration guide only showed SetBeforeSendLog(_ => null) for dropping logs. Apps that call SentrySdk.Init and Logging.AddSentry() can set the Sentry provider's level to None instead, which keeps errors and breadcrumbs, works from configuration and creates no logs. Refs getsentry/sentry-dotnet#5988 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ric-oliv
force-pushed
the
docs/dotnet-logs-off-switch-migration
branch
from
November 23, 2026 15:40
749f5a7 to
dd39b87
Compare
The Logs page said Sentry's provider has the alias Sentry, but not what that means for filters, so Logging:Sentry:LogLevel read as if Sentry were a category. The note now says a LogLevel section under Logging:Sentry applies only to Sentry's logs and its keys are categories. Refs getsentry/sentry-dotnet#5988 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ric-oliv
force-pushed
the
docs/dotnet-logs-off-switch-migration
branch
from
November 23, 2026 16:37
989a0a2 to
d9c9e51
Compare
ric-oliv
marked this pull request as ready for review
November 23, 2026 16:44
Contributor
|
Getting ready to monitor this change · Rollout details
|
alexander-alderman-webb
approved these changes
Nov 23, 2026
This branch was successfully deployed
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.
DESCRIBE YOUR PR
Since 7.0.0, apps that call
SentrySdk.Initand addLogging.AddSentry()send everyILoggerentry to Sentry as a log. The migration guide only showsSetBeforeSendLog(_ => null)to turn that off. That callback still builds each log before it drops it, and it can't be set from configuration. getsentry/sentry-dotnet#5988 asks for a switch that can.That switch already exists. The logs provider that
Logging.AddSentry()adds has theSentryalias, so settingLogging:Sentry:LogLevel:DefaulttoNoneturns off its logs and keeps its errors and breadcrumbs. The migration guide now shows it next toSetBeforeSendLogas a second option, in configuration and in code. The Logs page already named the alias. It now also says that aLogLevelsection underLogging:Sentryapplies only to Sentry's logs, and that its keys are categories.I ran the snippets against
Sentry.Extensions.Logging7.0.0. WithNone, an info, a warning and an error still produced three breadcrumbs and one event, and no logs. A per-category level underLogging:Sentrychanged only which entries became logs and left breadcrumbs unchanged.Refs getsentry/sentry-dotnet#5988
IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace
YYYY-MM-DDwith the due date. You can update this information later by editing the PR description.PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes: