Skip to content

Commit 958bc04

Browse files
feat: Add last_event_id to top-level api
Closes #3049
1 parent efc324d commit 958bc04

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

sentry_sdk/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"is_initialized",
3535
"isolation_scope",
3636
"new_scope",
37+
"last_event_id",
3738
"push_scope",
3839
"set_context",
3940
"set_extra",

sentry_sdk/api.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def overload(x):
6060
"is_initialized",
6161
"isolation_scope",
6262
"new_scope",
63+
"last_event_id",
6364
"push_scope",
6465
"set_context",
6566
"set_extra",
@@ -375,3 +376,9 @@ def continue_trace(environ_or_headers, op=None, name=None, source=None):
375376
return Scope.get_isolation_scope().continue_trace(
376377
environ_or_headers, op, name, source
377378
)
379+
380+
381+
@clientmethod
382+
def last_event_id():
383+
# type: () -> Optional[str]
384+
return get_client().last_event_id()

0 commit comments

Comments
 (0)