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

fix: check limit in loop additional to pageSize to avoid google rate … #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mhus
Copy link

@mhus mhus commented Apr 24, 2023

…limit exeed - pageSize not working proper

If I execute gtrace it takes a while and then I get

2023/04/24 08:44:19 list traces: rpc error: code = ResourceExhausted desc = Quota exceeded for quota metric 'Read requests (free)' and limit 'Read requests (free) per minute' of service 'cloudtrace.googleapis.com' for consumer 'project_number:xxxx'.
error details: name = ErrorInfo reason = RATE_LIMIT_EXCEEDED domain = googleapis.com metadata = map[consumer:projects/xxxx quota_limit:ReadRequestsPerMinutePerProject quota_limit_value:300 quota_location:global quota_metric:cloudtrace.googleapis.com/read_requests service:cloudtrace.googleapis.com]
error details: name = Help desc = Request a higher quota limit. url = https://cloud.google.com/docs/quota#requesting_higher_quota

Looks like pageSize is dysfunctional. I added an additional check for limits.

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.

1 participant