Skip to content

Commit 99431d0

Browse files
committed
feat(sessions): Add explicit started to session
1 parent 909ecaa commit 99431d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sentry_sdk/sessions.py

+3
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ def update(
169169
self,
170170
sid=None, # type: Optional[Union[str, uuid.UUID]]
171171
did=None, # type: Optional[str]
172+
started=None, # type: Optional[datetime]
172173
timestamp=None, # type: Optional[datetime]
173174
duration=None, # type: Optional[float]
174175
status=None, # type: Optional[SessionStatus]
@@ -191,6 +192,8 @@ def update(
191192
self.sid = _make_uuid(sid)
192193
if did is not None:
193194
self.did = str(did)
195+
if started is not None:
196+
self.started = started
194197
if timestamp is None:
195198
timestamp = datetime.utcnow()
196199
self.timestamp = timestamp

0 commit comments

Comments
 (0)