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

Zap Field Attributes Reporting #902

Merged
merged 14 commits into from May 1, 2024

Conversation

mirackara
Copy link
Contributor

@mirackara mirackara commented Apr 18, 2024

Adds support for Zap field attributes properly showing up on the New Relic Platform.

@mirackara mirackara changed the title Zap Field Attributes Reporting (WIP) Zap Field Attributes Reporting Apr 22, 2024
@mirackara mirackara changed the base branch from master to develop April 22, 2024 16:39
@mirackara mirackara changed the title (WIP) Zap Field Attributes Reporting Zap Field Attributes Reporting Apr 22, 2024
@mirackara mirackara marked this pull request as ready for review April 22, 2024 18:30
@iamemilio iamemilio self-requested a review April 24, 2024 19:42
@@ -582,6 +582,10 @@ 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
}
ZapLogger struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add more info here about when it makes sense to do this: 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. Otherwise, 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 newrelic, we can marahal them asynchronously in the backend during harvests

@iamemilio
Copy link
Contributor

one nit pick, otherwise lgtm

@nr-swilloughby nr-swilloughby merged commit ac3fcc5 into newrelic:develop May 1, 2024
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants