Skip to content

Commit ce46e2b

Browse files
committed
Clarify the enforcement of implemeting unique keys
1 parent d5cfbdf commit ce46e2b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

specification/common/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ Keys that differ in casing are treated as distinct keys.
8080

8181
The representation of the map is language-dependent.
8282

83-
The implementation MUST by default ensure that the exported maps contain only unique keys.
83+
The implementation MUST by default enforce that the exported maps contain only
84+
unique keys. The enforcement of uniqueness may be performed
85+
in a variety of ways as it best fits the limitations of the particular
86+
implementation (e.g. by removing duplicates).
8487

8588
The implementation MAY have an option to allow exporting maps with duplicate keys
8689
(e.g. for better performance).
@@ -122,10 +125,10 @@ outside OpenTelemetry into OpenTelemetry attribute values.
122125
[Log Records](../logs/data-model.md),
123126
contain a collection of attributes.
124127

125-
Implementation MUST by default ensure that the exported attribute collections
128+
Implementation MUST by default enforce that the exported attribute collections
126129
contain only unique keys. The enforcement of uniqueness may be performed
127130
in a variety of ways as it best fits the limitations of the particular
128-
implementation.
131+
implementation (e.g. by removing duplicates).
129132

130133
Normally for the telemetry generated using OpenTelemetry SDKs the attribute
131134
key-value pairs are set via an API that either accepts a single key-value pair

0 commit comments

Comments
 (0)