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

THRIFT-5744: Switch to slog for go library #2882

Merged
merged 1 commit into from
Feb 6, 2024
Merged

THRIFT-5744: Switch to slog for go library #2882

merged 1 commit into from
Feb 6, 2024

Conversation

fishy
Copy link
Member

@fishy fishy commented Nov 17, 2023

Client: go

@fishy fishy added the golang patches related to go language label Nov 17, 2023
@fishy fishy requested a review from dcelasun November 17, 2023 20:44
@fishy fishy force-pushed the go-slog branch 4 times, most recently from 2c1eaeb to 0d89b7a Compare November 17, 2023 21:46
//
// If this is not called before calling Serve, context.Background() will be
// used.
func (p *TSimpleServer) SetLogContext(ctx context.Context) {
Copy link
Member Author

Choose a reason for hiding this comment

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

note: I used the term LogContext over BaseContext here as I intend this context to only be used for logging.

if we use it as base context to create ctx that we pass into processors and eventually handlers, then whatever developers set on the ctx to control the logging of TSimpleServer will also end up in their service handlers, which is most likely not intended and could be a big surprise.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds reasonable.

@fishy fishy force-pushed the go-slog branch 3 times, most recently from d2dadfc to ed416e1 Compare December 8, 2023 17:26
@fishy fishy force-pushed the go-slog branch 2 times, most recently from bcbf152 to 10ba036 Compare January 9, 2024 22:09
@fishy
Copy link
Member Author

fishy commented Feb 6, 2024

the go 1.22 github actions is not ready yet, will rerun github actions once that's ready.

@fishy
Copy link
Member Author

fishy commented Feb 6, 2024

the go 1.22 github actions is not ready yet, will rerun github actions once that's ready.

oh nevermind the new setup-go can just download it from upstream if it's not pre-built. neat.

@fishy fishy merged commit 875178c into master Feb 6, 2024
33 of 50 checks passed
@fishy fishy deleted the go-slog branch February 6, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
golang patches related to go language
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants