Skip to content

Commit

Permalink
Better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mirackara committed May 1, 2024
1 parent 4dbcccb commit 2c9b0b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions v3/newrelic/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,11 @@ type ApplicationLogging struct {
// Toggles whether the agent enriches local logs printed to console so they can be sent to new relic for ingestion
Enabled bool
}
// We want to enable this when your app collects fewer logs, or if your app can afford to compile the json
// during log collection, slowing down the execution of the line of code that will write the log. If your
// application collects logs at a high frequency or volume, or it can not afford the slowdown of marshaling objects
// before sending them to new relic, we can marshal them asynchronously in the backend during harvests by setting
// this to false using ConfigZapAttributesEncoder(false).
ZapLogger struct {
// Toggles whether zap logger field attributes are frontloaded with the zapcore.NewMapObjectEncoder or marshalled at harvest time
AttributesFrontloaded bool
Expand Down

0 comments on commit 2c9b0b0

Please sign in to comment.