Skip to content

Consolidate usage of Scope and Contexts for all Logging-Integrations #4783

Not planned

Description

@Flash0ver

Description

E.g. Sentry.Hangfire does not set/read Scope.Sdk.
Consolidate usages of getting all Contexts via Scope for all Logging-Integrations.

This can be done together (shortly before or shortly after) with Scope-Attributes.

See also changes in #4784.

Activity

  1. added
    .NET
    on Dec 2, 2025
  2. linear commented on Dec 2, 2025

    @linear
  3. jamescrosswell commented on Nov 26, 2026

    @jamescrosswell
    Collaborator

    Closing, since most of this is done:

    What's left is making the scope the single source of truth for default attributes: for example, logs and metrics take sentry.release from ScopeDefaults and ignore a Scope.Release set by the app. That's in draft PR #5376, and the context has been added to #4882.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NETImprovementLogs

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions