Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zapfixes #927

Merged
merged 2 commits into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions v3/newrelic/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,15 @@ 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
}
}

// AttributeDestinationConfig controls the attributes sent to each destination.
Expand Down
Loading