From f74f03d6e4d28a6a1f7f46361bb7b6e2e6d33e45 Mon Sep 17 00:00:00 2001 From: Tigran Najaryan Date: Fri, 7 May 2021 11:38:41 -0400 Subject: [PATCH] Add bytes (byte array) support to Log Data Model Contributes to https://github.com/open-telemetry/opentelemetry-specification/issues/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. --- specification/logs/data-model.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/specification/logs/data-model.md b/specification/logs/data-model.md index fcdd92cb5ea..ab27d66faee 100644 --- a/specification/logs/data-model.md +++ b/specification/logs/data-model.md @@ -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`.