We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e9300b commit f361c81Copy full SHA for f361c81
packages/browser/src/profiling/cache.ts
@@ -1,4 +1,4 @@
1
import type { Event } from '@sentry/types';
2
-import { makeProfilingCache } from '@sentry/utils';
+import { makeFifoCache } from '@sentry/utils';
3
4
-export const PROFILING_EVENT_CACHE = makeProfilingCache<string, Event>(20);
+export const PROFILING_EVENT_CACHE = makeFifoCache<string, Event>(20);
packages/utils/src/cache.ts
@@ -2,7 +2,7 @@
* Creates a cache that evicts keys in fifo order
* @param size {Number}
*/
5
-export function makeProfilingCache<Key extends string, Value>(
+export function makeFifoCache<Key extends string, Value>(
6
size: number,
7
): {
8
get: (key: Key) => Value | undefined;
0 commit comments