Nulls SHOULD NOT be allowed in arrays. (#1214)

* Nulls SHOULD NOT be allowed in arrays.

* Fill in CHANGELOG link

Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
This commit is contained in:
Christian Neumüller 2020-11-11 02:15:41 +01:00 committed by Josh Suereth
parent fb0804ed30
commit 1cbb4af73d
1 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,9 @@ processors / exporters.
Attribute values of `null` are not valid and attempting to set a `null` value is Attribute values of `null` are not valid and attempting to set a `null` value is
undefined behavior. 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 `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` processors / exporters as `null`). If exporters do not support exporting `null`
values, they MAY replace those values by 0, `false`, or empty strings. values, they MAY replace those values by 0, `false`, or empty strings.