Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions develop-docs/sdk/telemetry/scopes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Loading