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 more DO storage instrumentation #107

Merged
merged 7 commits into from
Apr 2, 2024

Conversation

DaniFoldi
Copy link
Contributor

Fixes # [insert GH issue number(s)].

What this PR solves / how to test:

Previously, DO instrumentation copied all options to attributes. This PR implements special support for most methods (transaction is the only currently existing method on DurableObjectStorage that isn't handled properly, as it has a rollback method we should ideally proxy/track).

I also fixed a bug in put, pretty sure that the "entries" overload would've caused an exception previously as the instrumentation wasn't prepared for it.

src/instrumentation/do-storage.ts Outdated Show resolved Hide resolved
src/instrumentation/do-storage.ts Outdated Show resolved Hide resolved
src/instrumentation/do-storage.ts Outdated Show resolved Hide resolved
@jahands jahands self-assigned this Apr 2, 2024
@jahands jahands force-pushed the do-storage-more-methods branch from 58e32d1 to 2e4139f Compare April 2, 2024 11:54
@jahands jahands force-pushed the do-storage-more-methods branch from 2e4139f to 31fdab2 Compare April 2, 2024 11:57
@jahands jahands merged commit c53aafa into evanderkoogh:main Apr 2, 2024
1 check 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