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

add context parameter to datastore interface #174

Closed
wants to merge 1 commit into from

Conversation

lanzafame
Copy link

This PR adds context.Context as the first parameter to the datastore interface. This allows for tracing and metrics tools to pass through the datastore interface, providing a better understanding of performance.

To allow for backwards compatibility, I would recommend that this be part of go-datastore/v2 allowing downstream packages to upgrade at their leisure.

@lanzafame
Copy link
Author

lanzafame commented Jun 29, 2021

@Stebalien thoughts? I can't request reviewers anymore it seems...

@Stebalien
Copy link
Member

Is this just a rebase of https://github.com/ipfs/go-datastore/pull/161/files?

@Stebalien Stebalien self-requested a review June 30, 2021 00:17
@lanzafame
Copy link
Author

lanzafame commented Jun 30, 2021

It isn't because I failed to search PRs when checking whether this was done, and only searched issues. 🤦

aschmahmann
aschmahmann approved these changes Oct 27, 2021
@aschmahmann
Copy link
Contributor

Oops, sorry @lanzafame clicked the wrong PR by accident. We're merging #181

@lanzafame
Copy link
Author

@aschmahmann no worries, just happy to see this has finally happened

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