Skip to content

Commit 087ce32

Browse files
authored
Clarify scope attribute application for logs and metrics (#15464)
1 parent e9cda7b commit 087ce32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

develop-docs/sdk/telemetry/scopes.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ The method SHOULD accept a dictionary/map/object where:
9696

9797
#### Behavior
9898

99-
- Attributes set on the global scope MUST be applied to all logs
100-
- Attributes set on the isolation scope MUST be applied to all logs in that execution context
101-
- Attributes set on the current scope MUST be applied only to the current log
99+
- Attributes set on the global scope MUST be applied to all logs and metrics
100+
- Attributes set on the isolation scope MUST be applied to all logs and metrics in that execution context
101+
- Attributes set on the current scope MUST be applied only to the current log and current metric
102102
- When the same attribute key exists in multiple scopes, the more specific scope's value takes precedence (current > isolation > global)
103103

104104
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.

0 commit comments

Comments
 (0)