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

Function _getBufferMap

packages/core/src/metrics/internal.ts:258–261  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256}
257
258function _getBufferMap(): WeakMap<Client, Array<SerializedMetric>> {
259 // The reference to the Client <> MetricBuffer map is stored on the carrier to ensure it's always the same
260 return getGlobalSingleton('clientToMetricBufferMap', () => new WeakMap<Client, Array<SerializedMetric>>());
261}

Calls 1

getGlobalSingletonFunction · 0.90

Tested by

no test coverage detected