Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/sentry_deno/packages/hub/src/session.ts>updateSession

Unofficial port of the Sentry SDK for JavaScript to Deno.
Latest
function updateSession
import { updateSession } from "https://deno.land/x/sentry_deno@v0.2.2/packages/hub/src/session.ts";

Updates a session object with the properties passed in the context.

Note that this function mutates the passed object and returns void. (Had to do this instead of returning a new and updated session because closing and sending a session makes an update to the session after it was passed to the sending logic.

Parameters

session: Session

the Session to update

optional
context: SessionContext = [UNSUPPORTED]

the SessionContext holding the properties that should be updated in @param session