-
Notifications
You must be signed in to change notification settings - Fork 42
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
Refactor trace header support #59
Refactor trace header support #59
Conversation
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.
Hello, @Costella
Thanks for your new PR, and I'm sorry for the late review.
However, I noticed in this PR, you are trying to do several things:
- Implement
WithTraceResponseHeaders()
option & deprecateWithTraceIDResponseHeader
. - Refactor
config
by making all the properties private. - Refactor
sdk_test.go
by addingt.Helper()
to several test cases.
While it is tempting to implement all of these in one go, let's only focus on implementing the first objective. This will make the review much easier and ensure we won't run into unintended consequences.
cc: @ilhamsyahids
cc07705
to
489a49a
Compare
489a49a
to
2cf1c02
Compare
@riandyrn yes, that's reasonable! Just removed most the rest of the changes. Will split them into another PR for consideration. |
Just a friendly ping, in case anyone happens to have some time for a review this week 😇 |
the pipeline failure seems unrelated? 🤔 |
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.
LGTM, thanks a lot @costela! 🔥🚀
Not sure about the pipeline, let me try on different branch |
c866ef8
into
riandyrn:feat/trace-sampled
Following up from the discussion in #57 (comment)