Skip to content

Commit a98199a

Browse files
committed
update javadoc
1 parent 04c4a6f commit a98199a

File tree

1 file changed

+13
-9
lines changed
  • api/all/src/main/java/io/opentelemetry/api/common

1 file changed

+13
-9
lines changed

api/all/src/main/java/io/opentelemetry/api/common/Value.java

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,19 @@ static Value<Empty> empty() {
124124
* world}, (empty string)
125125
* <li>{@link ValueType#BOOLEAN} JSON boolean. Examples: {@code true}, {@code false}
126126
* <li>{@link ValueType#LONG} JSON number. Examples: {@code 42}, {@code -123}
127-
* <li>{@link ValueType#DOUBLE} JSON number, or {@code "NaN"}, {@code "Infinity"}, {@code
128-
* "-Infinity"} for special values. Examples: {@code 3.14159}, {@code 1.23e10}, {@code
129-
* "NaN"}, {@code "-Infinity"}
130-
* <li>{@link ValueType#ARRAY} JSON array. Nested strings and byte arrays are encoded as JSON
131-
* strings (with surrounding quotes). Nested empty values are encoded as JSON {@code null}.
132-
* Examples: {@code []}, {@code [1, "a", true, {"nested": "aGVsbG8gd29ybGQ="}]}
133-
* <li>{@link ValueType#KEY_VALUE_LIST} JSON object. Nested strings and byte arrays are encoded
134-
* as JSON strings (with surrounding quotes). Nested empty values are encoded as JSON {@code
135-
* null}. Examples: {@code {}}, {@code {"a": "1", "b": 2, "c": [3, null]}}
127+
* <li>{@link ValueType#DOUBLE} JSON number, or {@code NaN}, {@code Infinity}, {@code -Infinity}
128+
* for special values (without surrounding quotes). Examples: {@code 3.14159}, {@code
129+
* 1.23e10}, {@code NaN}, {@code -Infinity}
130+
* <li>{@link ValueType#ARRAY} JSON array. Nested byte arrays are encoded as Base64-encoded JSON
131+
* strings. Nested empty values are encoded as JSON {@code null}. The special floating point
132+
* values NaN and Infinity are encoded as JSON strings {@code "NaN"}, {@code "Infinity"},
133+
* and {@code "-Infinity"}. Examples: {@code []}, {@code [1, "-Infinity", "a", true,
134+
* {"nested": "aGVsbG8gd29ybGQ="}]}
135+
* <li>{@link ValueType#KEY_VALUE_LIST} JSON object. Nested byte arrays are encoded as
136+
* Base64-encoded JSON strings. Nested empty values are encoded as JSON {@code null}. The
137+
* special floating point values NaN and Infinity are encoded as JSON strings {@code "NaN"},
138+
* {@code "Infinity"}, and {@code "-Infinity"}. Examples: {@code {}}, {@code {"a":
139+
* "-Infinity", "b": 2, "c": [3, null]}}
136140
* <li>{@link ValueType#BYTES} Base64-encoded bytes without surrounding quotes. Example: {@code
137141
* aGVsbG8gd29ybGQ=}
138142
* <li>{@link ValueType#EMPTY} The empty string.

0 commit comments

Comments
 (0)