diff --git a/develop-docs/sdk/telemetry/scopes.mdx b/develop-docs/sdk/telemetry/scopes.mdx index 043ae2c180a51..78543defa0d34 100644 --- a/develop-docs/sdk/telemetry/scopes.mdx +++ b/develop-docs/sdk/telemetry/scopes.mdx @@ -103,6 +103,20 @@ The method SHOULD accept a dictionary/map/object where: See [Span Protocol - Common Attribute Keys](/sdk/telemetry/spans/span-protocol/#common-attribute-keys) for a list of standard attributes and [Sentry Conventions](https://github.com/getsentry/sentry-conventions/) for the complete attribute registry. +### Removing Attributes + +Users MUST be able to remove attributes set on any scope using a dedicated method, e.g. `scope.removeAttribute()`. + +#### Example Usage + +```javascript +Sentry.getGlobalScope().removeAttribute('app.feature_flag.enabled'); +``` + +```python +sentry_sdk.get_global_scope().remove_attribute('app.feature_flag.enabled') +``` + ## Related Documents This document provides a concise summary of the [Hub & Scope Refactoring](/sdk/miscellaneous/hub_and_scope_refactoring/), focusing on implementation details and expected features. The original document remains unchanged, offering additional historical context and migration strategies.