Repository navigation
Closed
getsentry/sentry-docs
#19960Labels
Description
#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.Environmenttonullclears the override. Scope.ReleaseandScope.Distributionare removed, so release and distribution can only be set onSentryOptions.- On Android and iOS,
SENTRY_RELEASEnow 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
Environmentset in code orappsettings.json, thenSENTRY_ENVIRONMENT, then the host environment (Production,StagingandDevelopmentlower-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 reportssentry.dotnet.aspnetcore.blazor.webassembly. Serilog and NLog events no longer reportsentry.dotnet.serilogorsentry.dotnet.nlog, so saved queries and alerts that filter on those names need updating.
Pages to update in getsentry/sentry-docs
docs/platforms/dotnet/common/configuration/options.mdx:Environmentsays only ASP.NET Core picks up the host environment. Add Blazor WebAssembly and Google Cloud Functions once feat!: set the Sentry environment from the host environment in every ASP.NET Core UseSentry overload, Blazor WebAssembly and Google Cloud Functions #5703 merges, give the precedence above, and say that a scope's environment now applies to every kind of telemetry.Release: say that on Android and iOS the default comes from the app package, and thatSENTRY_RELEASEtakes precedence over it.
platform-includes/set-release/dotnet.mdxdescribes how the SDK finds the release (SENTRY_RELEASE, then the entry assembly's version). Add the Android and iOS case.docs/platforms/dotnet/guides/google-cloud-functions/index.mdxalready lists "Environment is automatically set (IHostingEnvironment)" as a feature. That only becomes true with feat!: set the Sentry environment from the host environment in every ASP.NET Core UseSentry overload, Blazor WebAssembly and Google Cloud Functions #5703. Check the Blazor WebAssembly guide too.
The SDK name change mostly belongs in the 7.x migration guide; it needs no page of its own.
Activity
linear-code commentedon Oct 12, 2026
NET-859
docs(dotnet): Document release and environment resolution for SDK 7.0…