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

[v10] Manually instrument cache.Cache #13587

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

rosstimothy
Copy link
Contributor

Backport #13318 to branch/v10

Adds a `trace.Tracer` to the `cache.Cache`so
that all operations can be traced. Also, updates
the `utils.FnCache` to link the `context.Context`
passed to the loadFn to any current spans. This
will allow any fetches made by the `FnCache` to
be associated with the call that lead to loading.

Note: There are a few methods in the `auth.Cache`
interface which do not take a `context.Context`.
For the time being all spans for these calls use
a `context.TODO` and will be updated in the future,
where the changes can be made on a per method basis.
@rosstimothy rosstimothy enabled auto-merge (squash) June 16, 2022 20:31
@rosstimothy rosstimothy merged commit 4caf050 into branch/v10 Jun 16, 2022
@webvictim webvictim mentioned this pull request Jul 12, 2022
@zmb3 zmb3 deleted the bot/backport-13318-branch/v10 branch May 7, 2024 22:30
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.

3 participants