Skip to content

Commit fe46994

Browse files
authored
ref(develop): Clarify telemetry data > scope attribute precedence (#15482)
1 parent 27e0cd6 commit fe46994

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

develop-docs/sdk/telemetry/scopes.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ The method SHOULD accept a dictionary/map/object where:
100100
- Attributes set on the isolation scope MUST be applied to all logs and metrics in that execution context
101101
- 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)
103+
- When the same attribute key exists on the current log or metric, it MUST take precedence over an attribute with the same key set on any scope (log/metric > current > isolation > global)
103104

104105
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.
105106

0 commit comments

Comments
 (0)