Skip to content

Replace context.TODO with request context and functional options#56

Merged
roidelapluie merged 1 commit into
prometheus:mainfrom
roidelapluie:roidelapluie/functional-options
Mar 6, 2026
Merged

Replace context.TODO with request context and functional options#56
roidelapluie merged 1 commit into
prometheus:mainfrom
roidelapluie:roidelapluie/functional-options

Conversation

@roidelapluie
Copy link
Copy Markdown
Member

Remove the global context.TODO variable by using req.Context() in RoundTrip and adding a WithContext functional option to NewSigV4RoundTripper for the initialization phase.

Remove the global context.TODO variable by using req.Context() in
RoundTrip and adding a WithContext functional option to
NewSigV4RoundTripper for the initialization phase.

Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
@roidelapluie roidelapluie requested review from SuperQ and gotjosh March 6, 2026 14:52
Copy link
Copy Markdown
Member

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

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

Nice

@roidelapluie roidelapluie merged commit 9fbf3cc into prometheus:main Mar 6, 2026
5 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.

2 participants