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

fix memberships dbtools traces #124

Merged
merged 1 commit into from
Nov 5, 2024
Merged

Conversation

mikemrm
Copy link
Contributor

@mikemrm mikemrm commented Nov 4, 2024

Calls to fetch user/group memberships using dbtools was passing gin.Context as the context instead of the gin.Context's Request.Context() which is where all existing trace context is held.

This updates those calls to pass the request context so the traces are properly related.

@mikemrm mikemrm marked this pull request as ready for review November 4, 2024 20:45
@mikemrm mikemrm requested a review from a team as a code owner November 4, 2024 20:45
@mikemrm mikemrm enabled auto-merge (squash) November 5, 2024 17:46
Calls to fetch user/group memberships using dbtools was passing gin.Context as the context
instead of the gin.Context's Request.Context() which is where all existing trace context is held.

This updates those calls to pass the request context so the traces are properly related.

Signed-off-by: Mike Mason <mimason@equinix.com>
@mikemrm mikemrm merged commit 0f86eb1 into metal-toolbox:main Nov 5, 2024
1 check was pending
@mikemrm mikemrm deleted the fix-db-traces branch November 5, 2024 18:23
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