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(release-archives): Add spans to fetch_release_archive_for_url #28790

Merged
merged 3 commits into from
Sep 23, 2021

Conversation

jjbayer
Copy link
Member

@jjbayer jjbayer commented Sep 23, 2021

Add more instrumentation to function that triggers frequent soft timeouts.

https://getsentry.atlassian.net/browse/INGEST-116

@jjbayer jjbayer requested review from untitaker and tonyo September 23, 2021 11:00
cache.set(cache_key, file_.read(), 3600)
with sentry_sdk.start_span(op="fetch_release_archive_for_url.read_for_caching"):
contents = file_.read()
with sentry_sdk.start_span(op="fetch_release_archive_for_url.write_to_cache"):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps would be helpful to add the size of "contents" to the span as additional data, to check if there's correlation between size and time.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this makes sense.. probably should do this for every span. Keep in mind we don't have access to local vars in performance product

Copy link
Contributor

@tonyo tonyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jjbayer jjbayer enabled auto-merge (squash) September 23, 2021 13:19
@jjbayer jjbayer merged commit d2117e5 into master Sep 23, 2021
@jjbayer jjbayer deleted the feat/instrumentation-release-archive-fetch branch September 23, 2021 13:31
vuluongj20 pushed a commit that referenced this pull request Sep 30, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants