{"modulePath":"github.com/OpenSourceProjects/go-agent","version":"v3.19.2+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package logcontext\n\n## Constants\n\n```go\nconst (\n\tKeyFile       = \"file.name\"\n\tKeyLevel      = \"log.level\"\n\tKeyLine       = \"line.number\"\n\tKeyMessage    = \"message\"\n\tKeyMethod     = \"method.name\"\n\tKeyTimestamp  = \"timestamp\"\n\tKeyTraceID    = \"trace.id\"\n\tKeySpanID     = \"span.id\"\n\tKeyEntityName = \"entity.name\"\n\tKeyEntityType = \"entity.type\"\n\tKeyEntityGUID = \"entity.guid\"\n\tKeyHostname   = \"hostname\"\n)\n```\nKeys used for logging context JSON.\n\n## Functions\n\n```go\nfunc AddLinkingMetadata(m map[string]interface{}, md newrelic.LinkingMetadata)\n```\nAddLinkingMetadata 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\".\n\n","path":"github.com/OpenSourceProjects/go-agent/_integrations/logcontext","name":"logcontext","synopsis":"","isRedistributable":true}
