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

Function _getBufferMap

packages/core/src/logs/internal.ts:226–229  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224}
225
226function _getBufferMap(): WeakMap<Client, Array<SerializedLog>> {
227 // The reference to the Client <> LogBuffer map is stored on the carrier to ensure it's always the same
228 return getGlobalSingleton('clientToLogBufferMap', () => new WeakMap<Client, Array<SerializedLog>>());
229}
230
231/**
232 * Sanitizes serialized log attributes by replacing lone surrogates in both

Callers 3

_INTERNAL_getLogBufferFunction · 0.70

Calls 1

getGlobalSingletonFunction · 0.90

Tested by

no test coverage detected