Skip to content

Conversation

@volokluev
Copy link
Member

Sentry has great tools to be able to understand allocation policy decisions in aggregate using span data. Add tenant id information and quota allowance information to the span in order to better dissect these errors using our tooling

@volokluev volokluev requested a review from a team as a code owner January 13, 2026 21:42
The allocation policy now includes storage_key in the explanation field
for better observability. Updated the test expectations to match this
new behavior.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@volokluev volokluev requested a review from a team as a code owner January 13, 2026 22:52
The allocation policy changes added instrumentation that iterates over
tenant_ids.items(), but tests were using bare mock.Mock() objects for
attribution_info. This caused 'Mock' object is not iterable errors.

Fixed by configuring mocks with proper tenant_ids dictionaries.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@volokluev volokluev enabled auto-merge (squash) January 14, 2026 18:47
@volokluev volokluev merged commit 3cd8876 into master Jan 14, 2026
34 checks passed
@volokluev volokluev deleted the volo/better_spans_alloc_policy branch January 14, 2026 19:28
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.

3 participants