Skip to content

Commit

Permalink
Add bytes (byte array) support to Log Data Model
Browse files Browse the repository at this point in the history
Contributes to open-telemetry#780

OTLP already supports bytes as a data type for Any value, see:
https://github.com/open-telemetry/opentelemetry-proto/blob/de4fc37940d39370194fb774e634ca408dacd865/opentelemetry/proto/common/v1/common.proto#L37

Byte arrays are an important case for unparsed, unstrusctured log data, so we are
formally adding them as a supported data type to the Log Data Model.

TODO: consider adding bytes to Trace API too.
  • Loading branch information
tigrannajaryan committed May 7, 2021
1 parent 744b40a commit f74f03d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions specification/logs/data-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ Value of type `any` can be one of the following:

- A scalar value: number, string or boolean,

- A byte array,

- An array (a list) of `any` values,

- A `map<string, any>`.
Expand Down

0 comments on commit f74f03d

Please sign in to comment.