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(spans): Fixes span outcomes and inherited rate limits #3793

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

Dav1dde
Copy link
Member

@Dav1dde Dav1dde commented Jul 4, 2024

Span outcomes are currently off when created from rate limited transactions in the transaction_indexed category. All of the dropped outcomes are also added to the accepted, because the metrics are not dropped.

Additionally outcomes for the span category were emitted when there was a limit for transaction_indexed instead of just emitting them from span_indexed.

Implementation notes:
Need to drop the metrics based on the enforcement instead of the rate limits, because it is correct that there are no rate limits added for the inherited category. We wouldn't want to start dropping standalone spans because of a transaction quota.

@Dav1dde Dav1dde requested a review from a team as a code owner July 4, 2024 13:52
@Dav1dde Dav1dde self-assigned this Jul 4, 2024
@Dav1dde Dav1dde requested review from phacops and jjbayer July 4, 2024 13:57
@Dav1dde Dav1dde enabled auto-merge (squash) July 5, 2024 07:35
@Dav1dde Dav1dde merged commit 906a14e into master Jul 5, 2024
23 checks passed
@Dav1dde Dav1dde deleted the dav1d/span-outcomes branch July 5, 2024 08:07
jan-auer added a commit that referenced this pull request Jul 8, 2024
* master:
  feat(getter): Add logentry getter to event (#3796)
  feat(rule-condition): Add `any` and `all` loop conditions (#3791)
  ref(normalization): Remove normalization debug metrics (#3786)
  fix(redis): Fix Redis data corruption on connection timeout (#3792)
  fix(spans): Fixes span outcomes and inherited rate limits (#3793)
  build(py): Update craft to use new manylinux wheels (#3789)
0Calories pushed a commit that referenced this pull request Jul 11, 2024
Span outcomes are currently off when created from rate limited
transactions in the `transaction_indexed` category. All of the dropped
outcomes are also added to the accepted, because the metrics are not
dropped.

Additionally outcomes for the span category were emitted when there was
a limit for `transaction_indexed` instead of just emitting them from
`span_indexed`.

Implementation notes:
Need to drop the metrics based on the enforcement instead of the rate
limits, because it is correct that there are no rate limits added for
the inherited category. We wouldn't want to start dropping standalone
spans because of a transaction quota.
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