Closed EugeneBalybin closed 1 year ago
So I played around and found that NR-LINKING part should not omit pipes when outside the transaction
Like this
{"level":"info","message":"test message"} NR-LINKING|xxxYYYzzzQQQ|HostName|||AppName|
Thanks and sorry it took so long to correct this. You are absolutely correct.
If outside a transaction, the trace.id and span.id portions are excluded, but the delimiters MUST remain to simplify extraction in the backend.
The next go agent release will include this.
Description
Got the following setup: Go application with newrelic/go-agent v3.20.3
nri-bundle
running for log forwarding to NewRelicWith the code above I'm getting the log message to stdout:
{"level":"info","message":"test message"} NR-LINKING|xxxYYYzzzQQQ|HostName|AppName|
nri-bundle
gets the message, sends it to the NewRelic, and I can find it in the New Relic logs, but they are in the global logs section, not in the APM -> Logs.In the New Relic UI there is no "NR-LINKING" part, just json which is properly decoded into a message fields. And among the fiends there are no entity.name or entity.guid fields
BUT I can see log metrics on the APM summary page
Expected Behavior
entity.name and entity.guid are present and logs discoverable in the APM section