Skip to content

Commit f20aae9

Browse files
committed
comment
1 parent fb9df91 commit f20aae9

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

api/all/src/main/java/io/opentelemetry/api/logs/LogRecordBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ default LogRecordBuilder setAttribute(String key, int value) {
203203
* <p>Note: It is strongly recommended to use {@link #setAttribute(AttributeKey, Object)}, and
204204
* pre-allocate your keys, if possible.
205205
*
206+
* <p>Instrumentations should assume that backends do not index individual properties of complex
207+
* attributes, that querying or aggregating on such properties is inefficient and complicated,
208+
* and that reporting complex attributes carries higher performance overhead.
209+
*
206210
* @param key the key for this attribute.
207211
* @param value the value for this attribute.
208212
* @return this.

api/all/src/main/java/io/opentelemetry/api/trace/Span.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ default Span setAttribute(String key, boolean value) {
156156
* <p>Note: It is strongly recommended to use {@link #setAttribute(AttributeKey, Object)}, and
157157
* pre-allocate your keys, if possible.
158158
*
159+
* <p>Instrumentations should assume that backends do not index individual properties of complex
160+
* attributes, that querying or aggregating on such properties is inefficient and complicated,
161+
* and that reporting complex attributes carries higher performance overhead.
162+
*
159163
* @param key the key for this attribute.
160164
* @param value the value for this attribute.
161165
* @return this.

0 commit comments

Comments
 (0)