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(quota): Parse large limits #2079

Merged
merged 2 commits into from
Apr 28, 2023
Merged

fix(quota): Parse large limits #2079

merged 2 commits into from
Apr 28, 2023

Conversation

jjbayer
Copy link
Member

@jjbayer jjbayer commented Apr 28, 2023

Rate limits for attachments are measured in bytes, but Relay cannot parse rate limits that do not fit into a u32. This means that the highest possible rate limit is 4 gibibytes (GiB), which became a problem in INC-362.

Change the internal datatype to u64 to support larger numbers for rate limits.

@jjbayer jjbayer requested a review from leedongwei April 28, 2023 07:41
@jjbayer jjbayer marked this pull request as ready for review April 28, 2023 07:42
@jjbayer jjbayer requested a review from a team April 28, 2023 07:42
@jjbayer jjbayer merged commit 8c13d47 into master Apr 28, 2023
@jjbayer jjbayer deleted the fix/rate-limit-type branch April 28, 2023 10:33
jan-auer added a commit that referenced this pull request May 2, 2023
* master:
  ci(gha): add debugging for "Couldn'\''t write tracker file" issue (#2081)
  feat(crons): Pass-through minimal `sdk` field (#2073)
  fix(quota): Parse large limits (#2079)
  instr(server): More details on unexpected envelope drop (#2077)
  fix(ci): Skip flaky integration test (#2076)
jjbayer added a commit to getsentry/sentry that referenced this pull request May 3, 2023
Reverts #48057

As of getsentry/relay#2079, Relay is able to
parse any positive integer `< 2**64`, so this workaround is no longer
necessary.
jan-auer added a commit that referenced this pull request May 9, 2023
* master: (178 commits)
  ref(crons): Allow `_` in monitor slugs (#2100)
  fix(span-metrics): Scrub subdomains in metric tags (#2103)
  feat(normalization): Scrub span description URLs (#2095)
  feat(dynamic-sampling): Add possibility to run dynamic sampling from `sentry-relay` (#2091)
  ref(dynamic-config): Remove transaction metrics allowlist from Sentry (#2092)
  feat(protocol): Support old effective-directory format (#2048)
  ref(spans): Add more tags to span metrics (#2090)
  fix(server): Support HTTP half-close connections (#2089)
  ref(spans): Use transactions namespace with `span` prefix (#2087)
  ref(spans): Update span metrics feature flag name (#2086)
  feat(metrics): Extract more metrics from spans (#2080)
  build: Bump tempfile to remove flagged dependency (#2085)
  feat(filter): Add document_uri csp filter (#2059)
  build: Use jemalloc on Linux (#2084)
  ci(gha): add debugging for "Couldn'\''t write tracker file" issue (#2081)
  feat(crons): Pass-through minimal `sdk` field (#2073)
  fix(quota): Parse large limits (#2079)
  instr(server): More details on unexpected envelope drop (#2077)
  fix(ci): Skip flaky integration test (#2076)
  feat(dynamic-sampling): Add support for `trace.replay_id` in matching rules (#2070)
  ...
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