Skip to content

Document the release and environment changes for v7.0.0 #5709

Closed
getsentry/sentry-docs
#19960

Description

@jamescrosswell

#5671 changed how release, environment and SDK name are resolved in 7.0.0. #5703, which is still open, extends the host-environment mapping from ASP.NET Core to Blazor WebAssembly and Google Cloud Functions. The option docs still describe 6.x.

The .NET docs aren't versioned. As with #5698, the new text should say that it applies from 7.0.0 on, or the PR should merge when 7.0.0 ships.

What changed in 7.0.0

  • Release, distribution, environment and default tags are resolved once, at init. Every kind of telemetry then takes each value from the item itself, then from the scope, then from those defaults.
  • An environment set on the scope now applies to logs, metrics, sessions, check-ins and trace propagation, not only to events. Setting Scope.Environment to null clears the override.
  • Scope.Release and Scope.Distribution are removed, so release and distribution can only be set on SentryOptions.
  • On Android and iOS, SENTRY_RELEASE now takes precedence over the release derived from the app package.
  • With feat!: set the Sentry environment from the host environment in every ASP.NET Core UseSentry overload, Blazor WebAssembly and Google Cloud Functions #5703, Blazor WebAssembly and Google Cloud Functions take the environment from the host environment, as ASP.NET Core does. The precedence is Environment set in code or appsettings.json, then SENTRY_ENVIRONMENT, then the host environment (Production, Staging and Development lower-cased, custom names kept as they are).
  • Events, transactions, logs and metrics report the SDK name of the integration that initialized Sentry, such as sentry.dotnet.aspnetcore. Blazor WebAssembly now reports sentry.dotnet.aspnetcore.blazor.webassembly. Serilog and NLog events no longer report sentry.dotnet.serilog or sentry.dotnet.nlog, so saved queries and alerts that filter on those names need updating.

Pages to update in getsentry/sentry-docs

The SDK name change mostly belongs in the 7.x migration guide; it needs no page of its own.

Activity

  1. added
    .NET
    Next Major
    on Oct 12, 2026
  2. linear-code commented on Oct 12, 2026

    @linear-code
  3. added a commit that references this issue on Nov 11, 2026
    d94c3eb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

.NETDocsNext Major

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions