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(metric-stats): Add cardinality.{limit,scope} tags to strings indexer #68891

Merged
merged 1 commit into from Apr 16, 2024

Conversation

Dav1dde
Copy link
Member

@Dav1dde Dav1dde commented Apr 15, 2024

Epic: getsentry/relay#3147

Adds cardinality.scope and cardinality.limit tags to strings indexer, to allow manual queries via cardinality analyzer spanning multiple/all orgs with a fixed metric id/tag id.

The tag is unused in all indexer tables.

@Dav1dde Dav1dde requested a review from a team as a code owner April 15, 2024 12:56
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 15, 2024
@Dav1dde Dav1dde self-assigned this Apr 15, 2024
@Dav1dde Dav1dde requested a review from jjbayer April 15, 2024 12:59
@@ -1,7 +1,7 @@
from hashlib import sha256

LOCKED_FILE = "src/sentry/sentry_metrics/indexer/strings.py"
LOCKED_DIGEST = "609a019a93229c352ec38c2be6a0620bfd2964e00315258c32f1502b4bc14add"
LOCKED_DIGEST = "0ef936acdfde1efe71cfe4ba07ff9a736c27374c0ce5b5c22fcbcad36f8c8970"
Copy link
Member Author

Choose a reason for hiding this comment

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

:trollface:

@Dav1dde Dav1dde requested a review from evanh April 15, 2024 13:00
Copy link

codecov bot commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.72%. Comparing base (4fcbd74) to head (20b520e).
Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #68891      +/-   ##
==========================================
- Coverage   79.72%   79.72%   -0.01%     
==========================================
  Files        6423     6423              
  Lines      284723   284726       +3     
  Branches    49046    49048       +2     
==========================================
- Hits       226998   226991       -7     
- Misses      57327    57337      +10     
  Partials      398      398              
Files Coverage Δ
src/sentry/sentry_metrics/indexer/strings.py 100.00% <ø> (ø)

... and 14 files with indirect coverage changes

@Dav1dde Dav1dde force-pushed the dav1d/cardinality-scope-string branch from 56ff86e to 20b520e Compare April 15, 2024 15:04
Copy link
Member

@evanh evanh left a comment

Choose a reason for hiding this comment

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

I am approving this, but: the strings.py file is not something we plan to support going forward. Since this change is meant only to help manual debugging, for a temporary time frame it shouldn't impact future features when we remove this file.

@Dav1dde Dav1dde changed the title feat(metric-stats): Add cardinality.scope tag to strings indexer feat(metric-stats): Add cardinality.{limit,scope} tags to strings indexer Apr 15, 2024
@Dav1dde Dav1dde merged commit 696c889 into master Apr 16, 2024
50 checks passed
@Dav1dde Dav1dde deleted the dav1d/cardinality-scope-string branch April 16, 2024 10:45
armenzg pushed a commit that referenced this pull request Apr 17, 2024
…exer (#68891)

Adds `cardinality.scope` and `cardinality.limit` tags to strings
indexer, to allow manual queries via cardinality analyzer spanning
multiple/all orgs with a fixed metric id/tag id.

The tag is unused in all indexer tables.
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants