Skip to content

Commit

Permalink
make the linter happy for logging constants
Browse files Browse the repository at this point in the history
  • Loading branch information
iamemilio committed May 27, 2022
1 parent bf23074 commit b54d6c7
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions v3/newrelic/log_event.go
Expand Up @@ -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
Expand Down

0 comments on commit b54d6c7

Please sign in to comment.