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

Function jsonSize

packages/core/src/utils/normalize.ts:262–264  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

260/** Calculates bytes size of input object */
261// eslint-disable-next-line @typescript-eslint/no-explicit-any
262function jsonSize(value: any): number {
263 return utf8Length(JSON.stringify(value));
264}
265
266/**
267 * Normalizes URLs in exceptions and stacktraces to a base path so Sentry can fingerprint

Callers 1

normalizeToSizeFunction · 0.85

Calls 1

utf8LengthFunction · 0.85

Tested by

no test coverage detected