Rocky_Mountain_Vending/.pnpm-store/v10/files/46/a66b66e5039433a5f441b80e8a655ef8e6975784fe3f908629e25371e6b808f494183d376885f31f54ead84ea49054b4ed385ca40797d7d9d1cd170427e2da
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

79 lines
2.1 KiB
Text

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const nodeCore = require('@sentry/node-core');
const instrumentation = require('./instrumentation.js');
const instrumentOpenAi = nodeCore.generateInstrumentOnce(
core.OPENAI_INTEGRATION_NAME,
() => new instrumentation.SentryOpenAiInstrumentation({}),
);
const _openAiIntegration = ((options = {}) => {
return {
name: core.OPENAI_INTEGRATION_NAME,
options,
setupOnce() {
instrumentOpenAi();
},
};
}) ;
/**
* Adds Sentry tracing instrumentation for the OpenAI SDK.
*
* This integration is enabled by default.
*
* When configured, this integration automatically instruments OpenAI SDK client instances
* to capture telemetry data following OpenTelemetry Semantic Conventions for Generative AI.
*
* @example
* ```javascript
* import * as Sentry from '@sentry/node';
*
* Sentry.init({
* integrations: [Sentry.openAIIntegration()],
* });
* ```
*
* ## Options
*
* - `recordInputs`: Whether to record prompt messages (default: respects `sendDefaultPii` client option)
* - `recordOutputs`: Whether to record response text (default: respects `sendDefaultPii` client option)
*
* ### Default Behavior
*
* By default, the integration will:
* - Record inputs and outputs ONLY if `sendDefaultPii` is set to `true` in your Sentry client options
* - Otherwise, inputs and outputs are NOT recorded unless explicitly enabled
*
* @example
* ```javascript
* // Record inputs and outputs when sendDefaultPii is false
* Sentry.init({
* integrations: [
* Sentry.openAIIntegration({
* recordInputs: true,
* recordOutputs: true
* })
* ],
* });
*
* // Never record inputs/outputs regardless of sendDefaultPii
* Sentry.init({
* sendDefaultPii: true,
* integrations: [
* Sentry.openAIIntegration({
* recordInputs: false,
* recordOutputs: false
* })
* ],
* });
* ```
*
*/
const openAIIntegration = core.defineIntegration(_openAiIntegration);
exports.instrumentOpenAi = instrumentOpenAi;
exports.openAIIntegration = openAIIntegration;
//# sourceMappingURL=index.js.map