Skip to content

Commit 7b062ee

Browse files
committed
Merge branch 'master' into sentry-sdk-2.0
2 parents 93f89e0 + 336edf7 commit 7b062ee

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

scripts/init_serverless_sdk.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Then the Handler function sstring should be replaced with
66
'sentry_sdk.integrations.init_serverless_sdk.sentry_lambda_handler'
77
"""
8+
89
import os
910
import sys
1011
import re

sentry_sdk/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ def flush(
206206
@hubmethod
207207
def last_event_id():
208208
# type: () -> Optional[str]
209+
209210
return Hub.current.last_event_id()
210211

211212

sentry_sdk/hub.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,15 @@ def scope(self):
276276

277277
def last_event_id(self):
278278
# type: () -> Optional[str]
279-
"""Returns the last event ID."""
279+
"""
280+
Returns the last event ID.
281+
282+
.. deprecated:: 1.40.5
283+
This function is deprecated and will be removed in a future release. The functions `capture_event`, `capture_message`, and `capture_exception` return the event ID directly.
284+
"""
285+
logger.warning(
286+
"Deprecated: last_event_id is deprecated. This will be removed in the future. The functions `capture_event`, `capture_message`, and `capture_exception` return the event ID directly."
287+
)
280288
return self._last_event_id
281289

282290
def bind_client(

0 commit comments

Comments
 (0)