Skip to content

Add Scope.Clear and Scope.ClearBreadcrumbs #2272

Closed

Description

@mattjohnsonpint

Problem Statement

We need a way to clear the current scope entirely.

We also need a way to just clear breadcrumbs from the current scope.

See #1660 for use case examples.

Solution Brainstorm

As per https://develop.sentry.dev/sdk/unified-api/#scope, we can add Clear and ClearBreadcrumbs methods to the existing Scope object.

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

    Feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions