From 7027db47502079215c652ce6b15e217cb43803a3 Mon Sep 17 00:00:00 2001 From: Tigran Najaryan Date: Wed, 23 Mar 2022 12:48:29 -0400 Subject: [PATCH] Remove deprecated LogRecord.Name field The field is already deprecated and was on notice to be removed. I removed all usages of the field from the Collector codebase. --- CHANGELOG.md | 2 +- opentelemetry/proto/logs/v1/logs.proto | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b133c730a..1be02ad2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ Full list of differences found in [this compare](https://github.com/open-telemet ### Removed -* Remove if no changes for this section before release. +* Remove deprecated LogRecord.Name field. ## 0.15.0 - 2022-03-19 diff --git a/opentelemetry/proto/logs/v1/logs.proto b/opentelemetry/proto/logs/v1/logs.proto index 6cbd09ed1..c524a96c2 100644 --- a/opentelemetry/proto/logs/v1/logs.proto +++ b/opentelemetry/proto/logs/v1/logs.proto @@ -158,6 +158,8 @@ enum LogRecordFlags { // A log record according to OpenTelemetry Log Data Model: // https://github.com/open-telemetry/oteps/blob/main/text/logs/0097-log-data-model.md message LogRecord { + reserved 4; + // time_unix_nano is the time when the event occurred. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // Value of 0 indicates unknown or missing timestamp. @@ -188,13 +190,6 @@ message LogRecord { // it is known at the source. [Optional]. string severity_text = 3; - // Short event identifier that does not contain varying parts. Name describes - // what happened (e.g. "ProcessStarted"). Recommended to be no longer than 50 - // characters. Not guaranteed to be unique in any way. [Optional]. - // This deprecated field is planned to be removed March 15, 2022. Receivers can - // ignore this field. - string name = 4 [deprecated = true]; - // A value containing the body of the log record. Can be for example a human-readable // string message (including multi-line) describing the event in a free form or it can // be a structured data composed of arrays and maps of other values. [Optional].