You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is one New Relic Go Agent logs-in-context enricher available today, for Logrus. We have requests to create an enricher for Zerolog.
Assumptions
Not all users will subscribe to NR logging or logs-in-context (so the solution must not impact users who do not want these features)
There is a separate solution that forwards logs on to New Relic
Acceptance Criteria
Go agent customers with Zerolog have a tool to get decorated logs that is similar to our existing Logrus tool - similar installation, similar configuration, same capabilities
The tool uses our trace and entity metadatata APIs to decorate the log files
Decorated log file has all trace and entity metadata that are associated with an event, added in line with the event in the logs
Decorated log file is in json format
logs can be forwarded to NRDB using the NR logs solution offering (same as with our Logrus tool)
the metadata in the log file must be sufficient to support the desired behavior for logs-in-context use cases:
User can access the correct log file associated with their application entity
User can access logs at the relevant log line location from NR UI from distributed trace view, from errors view
User can search logs using a trace_id, span_id, and a unique identifier for errors
The text was updated successfully, but these errors were encountered:
Hi @jodeev, we've been using NewRelic at OneFootball and or logging library is zerolog, yesterday I worked on a rough implementation of logs-in-context for zerolog, I tested it an it seems to work well enough.
There is one New Relic Go Agent logs-in-context enricher available today, for Logrus. We have requests to create an enricher for Zerolog.
Assumptions
Acceptance Criteria
Go agent customers with Zerolog have a tool to get decorated logs that is similar to our existing Logrus tool - similar installation, similar configuration, same capabilities
The tool uses our trace and entity metadatata APIs to decorate the log files
Decorated log file has all trace and entity metadata that are associated with an event, added in line with the event in the logs
Decorated log file is in json format
logs can be forwarded to NRDB using the NR logs solution offering (same as with our Logrus tool)
the metadata in the log file must be sufficient to support the desired behavior for logs-in-context use cases:
The text was updated successfully, but these errors were encountered: