Skip to content

Commit 0cf0fd5

Browse files
committed
add StacktraceOrder enum
1 parent e6c8712 commit 0cf0fd5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sentry/interfaces/stacktrace.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import math
2+
from enum import Enum
23

34
from django.utils.translation import gettext as _
45

@@ -11,6 +12,12 @@
1112
__all__ = ("Stacktrace",)
1213

1314

15+
class StacktraceOrder(str, Enum):
16+
DEFAULT = "-1" # Equivalent to `MOST_RECENT_FIRST`
17+
MOST_RECENT_LAST = "1"
18+
MOST_RECENT_FIRST = "2"
19+
20+
1421
def max_addr(cur, addr):
1522
if addr is None:
1623
return cur

0 commit comments

Comments
 (0)