-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Bogdan Drutu <[email protected]>
- Loading branch information
1 parent
6b6ca2a
commit 518a89c
Showing
4 changed files
with
40 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Context | ||
|
||
<details> | ||
<summary> | ||
Table of Contents | ||
</summary> | ||
|
||
- [Attributes](#attribute) | ||
|
||
</details> | ||
|
||
## Attributes | ||
|
||
Attributes represent a list with zero or more key:value pairs (`Attribute`). An `Attribute` is defined by the following properties: | ||
|
||
- (Required) The attribute key, which MUST be a non-`null` and non-empty string. | ||
- (Required) The attribute value, which is either: | ||
- A primitive type: string, boolean or double (IEEE 754-1985) and int64. | ||
- An array of primitive type values. The array MUST be homogeneous, | ||
i.e. it MUST NOT contain values of different types. For protocols that do | ||
not natively support array values such values MUST be represented as JSON strings. | ||
|
||
`null` values within arrays MUST be preserved as-is (i.e., passed on to span | ||
processors / exporters as `null`). If exporters do not support exporting `null` | ||
values, they MAY replace those values by 0, `false`, or empty strings. | ||
This is required for map/dictionary structures represented as two arrays with | ||
indices that are kept in sync (e.g., two attributes `header_keys` and `header_values`, | ||
both containing an array of strings to represent a mapping | ||
`header_keys[i] -> header_values[i]`). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters