Skip to content

Commit 0400ed7

Browse files
snigdhasmifu67
authored andcommitted
feat(escalating-issues): Add new use case for metrics dataset (#52360)
Register a new use case for the metrics dataset to be used with escalating issues.
1 parent 3abb12a commit 0400ed7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sentry/sentry_metrics/use_case_id_registry.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ class UseCaseID(Enum):
1010
SPANS = "spans"
1111
TRANSACTIONS = "transactions"
1212
SESSIONS = "sessions"
13+
ESCALATING_ISSUES = "escalating_issues"
1314

1415

1516
# UseCaseKey will be renamed to MetricPathKey
1617
METRIC_PATH_MAPPING: Mapping[UseCaseID, UseCaseKey] = {
1718
UseCaseID.SPANS: UseCaseKey.PERFORMANCE,
1819
UseCaseID.TRANSACTIONS: UseCaseKey.PERFORMANCE,
1920
UseCaseID.SESSIONS: UseCaseKey.RELEASE_HEALTH,
21+
UseCaseID.ESCALATING_ISSUES: UseCaseKey.PERFORMANCE,
2022
}
2123

2224
# TODO: Remove this as soon as the entire indexer system is use case aware

0 commit comments

Comments
 (0)