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 0b9abdb
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
// 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
// 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
// The name of the timestamp field in New Relic logging JSON
LogTimestampFieldName = "timestamp"

// The name of the span ID field in the New Relic logging JSON
LogSpanIDFieldName = "span.id"

// The name of the trace ID field in the New Relic logging JSON
LogTraceIDFieldName = "trace.id"

// If the log level/severity is not known, it must be set to this value
LogSeverityUnknown = "UNKNOWN"

// The maximum number of bytes a new relic log message is allowed to have
MaxLogLength = 32768
)

// for internal user only
Expand Down

0 comments on commit 0b9abdb

Please sign in to comment.