Skip to content

Commit

Permalink
Nulls SHOULD NOT be allowed in arrays. (open-telemetry#1214)
Browse files Browse the repository at this point in the history
* Nulls SHOULD NOT be allowed in arrays.

* Fill in CHANGELOG link

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
  • Loading branch information
2 people authored and jsuereth committed Nov 16, 2023
1 parent 82b14e1 commit ba55805
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions specification/common/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ processors / exporters.
Attribute values of `null` are not valid and attempting to set a `null` value is
undefined behavior.

`null` values SHOULD NOT be allowed in arrays. However, if it is impossible to
make sure that no `null` values are accepted
(e.g. in languages that do not have appropriate compile-time type checking),
`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.
Expand Down

0 comments on commit ba55805

Please sign in to comment.