From b54d6c7885c9fd5075f211055f7d143c76124af3 Mon Sep 17 00:00:00 2001 From: Emilio Garcia Date: Fri, 27 May 2022 14:37:13 -0400 Subject: [PATCH] make the linter happy for logging constants --- v3/newrelic/log_event.go | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/v3/newrelic/log_event.go b/v3/newrelic/log_event.go index a69c92157..5ccdb1ab4 100644 --- a/v3/newrelic/log_event.go +++ b/v3/newrelic/log_event.go @@ -12,15 +12,26 @@ import ( ) const ( - LogSeverityFieldName = "level" // The name of the log level field in New Relic logging JSON - LogMessageFieldName = "message" // The name of the log message field in New Relic logging JSON - LogTimestampFieldName = "timestamp" // The name of the timestamp field in New Relic logging JSON - LogSpanIDFieldName = "span.id" // The name of the span ID field in the New Relic logging JSON - LogTraceIDFieldName = "trace.id" // The name of the trace ID field in the New Relic logging JSON + // LogSeverityFieldName is the name of the log level field in New Relic logging JSON + LogSeverityFieldName = "level" - LogSeverityUnknown = "UNKNOWN" // If the log level/severity is not known, it must be set to this value + // LogMessageFieldName is the name of the log message field in New Relic logging JSON + LogMessageFieldName = "message" - MaxLogLength = 32768 // The maximum number of bytes a new relic log message is allowed to have + // LogTimestampFieldName is the name of the timestamp field in New Relic logging JSON + LogTimestampFieldName = "timestamp" + + // LogSpanIDFieldName is the name of the span ID field in the New Relic logging JSON + LogSpanIDFieldName = "span.id" + + // LogTraceIDFieldName is the name of the trace ID field in the New Relic logging JSON + LogTraceIDFieldName = "trace.id" + + // LogSeverityUnknown is the value the log severity should be set to if no log severity is known + LogSeverityUnknown = "UNKNOWN" + + // MaxLogLength is the maximum number of bytes the log message is allowed to be + MaxLogLength = 32768 ) // for internal user only