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>
21 lines
1,002 B
Text
21 lines
1,002 B
Text
import { envToBool } from '@sentry/node-core';
|
|
import { preloadOpenTelemetry } from './sdk/initOtel.js';
|
|
|
|
const debug = envToBool(process.env.SENTRY_DEBUG);
|
|
const integrationsStr = process.env.SENTRY_PRELOAD_INTEGRATIONS;
|
|
|
|
const integrations = integrationsStr ? integrationsStr.split(',').map(integration => integration.trim()) : undefined;
|
|
|
|
/**
|
|
* The @sentry/node/preload export can be used with the node --import and --require args to preload the OTEL
|
|
* instrumentation, without initializing the Sentry SDK.
|
|
*
|
|
* This is useful if you cannot initialize the SDK immediately, but still want to preload the instrumentation,
|
|
* e.g. if you have to load the DSN from somewhere else.
|
|
*
|
|
* You can configure this in two ways via environment variables:
|
|
* - `SENTRY_DEBUG` to enable debug logging
|
|
* - `SENTRY_PRELOAD_INTEGRATIONS` to preload specific integrations - e.g. `SENTRY_PRELOAD_INTEGRATIONS="Http,Express"`
|
|
*/
|
|
preloadOpenTelemetry({ debug, integrations });
|
|
//# sourceMappingURL=preload.js.map
|