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

Function _INTERNAL_getLogBuffer

packages/core/src/logs/internal.ts:222–224  ·  view source on GitHub ↗
(client: Client)

Source from the content-addressed store, hash-verified

220 * @returns The log buffer for the given client.
221 */
222export function _INTERNAL_getLogBuffer(client: Client): Array<SerializedLog> | undefined {
223 return _getBufferMap().get(client);
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

Callers 3

internal.test.tsFile · 0.90

Calls 2

_getBufferMapFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected