import { closeSession } from "https://deno.land/x/sentry_deno@v0.2.2/packages/hub/src/session.ts";
Closes a session by setting its status and updating the session object with it.
Internally calls updateSession
to update the passed session object.
Note that this function mutates the passed session (@see updateSession for explanation).
Parameters
optional
status: Exclude<SessionStatus, "ok">the SessionStatus
with which the session was closed. If you don't pass a status,
this function will keep the previously set status, unless it was 'ok'
in which case
it is changed to 'exited'
.