-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: Send plugin logs via OTEL #1807
Conversation
c214c24
to
e61935f
Compare
e61935f
to
95412f2
Compare
record.SetSeverity(otellogSeverity(level)) | ||
record.SetBody(otellog.StringValue(message)) | ||
// See https://github.com/rs/zerolog/issues/493, this is ugly but it works | ||
logData := make(map[string]any) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Opened rs/zerolog#682 let's see how that goes π
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π± rs/zerolog#493 (comment) π€£
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you just add a general comment (not about the hack, but about what's going on with zerolog + otel? It's very clear with the context of this PR but the code looks complex so it's not clear on its own I think.
record.SetSeverity(otellogSeverity(level)) | ||
record.SetBody(otellog.StringValue(message)) | ||
// See https://github.com/rs/zerolog/issues/493, this is ugly but it works | ||
logData := make(map[string]any) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π± rs/zerolog#493 (comment) π€£
record.SetSeverity(otellogSeverity(level)) | ||
record.SetBody(otellog.StringValue(message)) | ||
// See https://github.com/rs/zerolog/issues/493, this is ugly but it works | ||
logData := make(map[string]any) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you just add a general comment (not about the hack, but about what's going on with zerolog + otel? It's very clear with the context of this PR but the code looks complex so it's not clear on its own I think.
Thanks for the review, added a more detailed comment. Someone is reviewing my PR at rs/zerolog#682 but I wasn't able to understand if they are a maintainer or not. |
π€ I have created a release *beep* *boop* --- ## [4.51.0](v4.50.1...v4.51.0) (2024-07-22) ### Features * Send plugin logs via OTEL ([#1807](#1807)) ([9897b83](9897b83)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Summary
Still WIP, opening for referenceUse the following steps to ensure your PR is ready to be reviewed
go fmt
to format your code πgolangci-lint run
π¨ (install golangci-lint here)