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

feat: option to log time spent in S3Storage calls #8533

Merged
merged 5 commits into from
Feb 14, 2025

Conversation

jennifer-richards
Copy link
Member

Adds an option, ietf_log_blob_timing, to the CustomS3Storage class. When True, emits logs like:

INFO: datatracker:48: S3Storage timing: _open('draft-richards-fake-draft-01.txt', ...) for staging took 0.044395
INFO: datatracker:48: S3Storage timing: delete('draft-richards-fake-draft-01.txt') for staging took 0.002906
INFO: datatracker:48: S3Storage timing: _open('draft-richards-fake-draft-01.html', ...) for staging took 0.00201
INFO: datatracker:48: S3Storage timing: delete('draft-richards-fake-draft-01.html') for staging took 0.001693
INFO: datatracker:48: saved file /assets/www6s/staging/draft-richards-fake-draft-01.xml
INFO: datatracker:48: S3Storage timing: _save('draft-richards-fake-draft-01.xml', ...) for staging took 0.007767

@rjsparks rjsparks merged commit c108727 into ietf-tools:feat/blobs Feb 14, 2025
2 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