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

logging: cleanup errdict usage #46011

Merged
merged 1 commit into from
Jul 15, 2023

Conversation

howardjohn
Copy link
Member

@howardjohn howardjohn commented Jul 13, 2023

For #44683

Partially reverts istio/pkg#192

We current have an errdict mechanism, which is basically just a struct
of k/v pairs to insert into logs. We made this builtin to our logging
system. This adds a lot of complexity, and I don't think its needed.

Instead, just add a helper to the errdict to make it add labels to the
logger we want, and strip out all of the first-class support in
pkg/log.

This change moves us closer to being able to just swap slog in (waiting for Go 1.21)

For istio#44683

Partially reverts istio/pkg#192

We current have an `errdict` mechanism, which is basically just a struct
of k/v pairs to insert into logs. We made this builtin to our logging
system. This adds a lot of complexity, and I don't think its needed.

Instead, just add a helper to the errdict to make it add labels to the
logger we want, and strip out all of the first-class support in
`pkg/log`.

This change moves us closer to being able to just swap `slog` in
@howardjohn howardjohn requested review from a team as code owners July 13, 2023 22:39
@howardjohn howardjohn added the release-notes-none Indicates a PR that does not require release notes. label Jul 13, 2023
@istio-testing istio-testing added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Jul 13, 2023
@howardjohn
Copy link
Member Author

/retest

@istio-testing istio-testing merged commit 75671b8 into istio:master Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes-none Indicates a PR that does not require release notes. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants