UNPKG

@sentry/node

Version:

Sentry Node SDK using OpenTelemetry for performance instrumentation

21 lines (18 loc) 710 B
import { GOOGLE_GENAI_INTEGRATION_NAME, defineIntegration } from '@sentry/core'; import { generateInstrumentOnce } from '@sentry/node-core'; import { SentryGoogleGenAiInstrumentation } from './instrumentation.js'; const instrumentGoogleGenAI = generateInstrumentOnce( GOOGLE_GENAI_INTEGRATION_NAME, (options) => new SentryGoogleGenAiInstrumentation(options) ); const _googleGenAIIntegration = ((options = {}) => { return { name: GOOGLE_GENAI_INTEGRATION_NAME, setupOnce() { instrumentGoogleGenAI(options); } }; }); const googleGenAIIntegration = defineIntegration(_googleGenAIIntegration); export { googleGenAIIntegration, instrumentGoogleGenAI }; //# sourceMappingURL=index.js.map