logcontext

package
v3.20.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 55

Documentation

Index

Constants

View Source
const (
	KeyFile       = "file.name"
	KeyLevel      = "log.level"
	KeyLine       = "line.number"
	KeyMessage    = "message"
	KeyMethod     = "method.name"
	KeyTimestamp  = "timestamp"
	KeyTraceID    = "trace.id"
	KeySpanID     = "span.id"
	KeyEntityName = "entity.name"
	KeyEntityType = "entity.type"
	KeyEntityGUID = "entity.guid"
	KeyHostname   = "hostname"
)

Keys used for logging context JSON.

Variables

This section is empty.

Functions

func AddLinkingMetadata

func AddLinkingMetadata(m map[string]interface{}, md newrelic.LinkingMetadata)

AddLinkingMetadata adds the LinkingMetadata into a map. Only non-empty string fields are included in the map. The specific key names facilitate agent logs in context. These keys are: "trace.id", "span.id", "entity.name", "entity.type", "entity.guid", and "hostname".

Types

This section is empty.

Directories

Path Synopsis
Package nrlogrusplugin decorates logs for sending to the New Relic backend.
Package nrlogrusplugin decorates logs for sending to the New Relic backend.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL