Skip to content

Commit

Permalink
Use lowercase file naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
onurtemizkan committed Sep 25, 2024
1 parent e8b5863 commit 4b7358f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/node/src/integrations/tracing/lrumemoizer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { LruMemoizerInstrumentation } from '@opentelemetry/instrumentation-lru-memoizer';

import { defineIntegration } from '@sentry/core';
import type { IntegrationFn } from '@sentry/types';
import { generateInstrumentOnce } from '../../otel/instrument';

const INTEGRATION_NAME = 'LruMemoizer';

export const instrumentLruMemoizer = generateInstrumentOnce(INTEGRATION_NAME, () => new LruMemoizerInstrumentation());

const _lruMemoizerIntegration = (() => {
return {
name: INTEGRATION_NAME,
setupOnce() {
instrumentLruMemoizer();
},
};
}) satisfies IntegrationFn;

/**
* LruMemoizer integration
*
* Propagate traces through LruMemoizer.
*/
export const lruMemoizerIntegration = defineIntegration(_lruMemoizerIntegration);

0 comments on commit 4b7358f

Please sign in to comment.