MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / addCultureContext

Function addCultureContext

packages/cloudflare/src/scope-utils.ts:17–21  ·  view source on GitHub ↗
(scope: Scope, cf: IncomingRequestCfProperties | CfProperties)

Source from the content-addressed store, hash-verified

15 * Set culture context on scope
16 */
17export function addCultureContext(scope: Scope, cf: IncomingRequestCfProperties | CfProperties): void {
18 scope.setContext('culture', {
19 timezone: cf.timezone,
20 });
21}
22
23/**
24 * Set request data on scope

Callers 1

wrapRequestHandlerFunction · 0.90

Calls 1

setContextMethod · 0.80

Tested by

no test coverage detected