Files
klz-cables.com/.pnpm-store/v10/files/8e/baef6e92ad381a79f4d2726addbfb4fbcd8723da37bb58d1a930a138e3b834cf7ec4aa0b50fbc8e5a9f16dd7f8549d9edf93ae86a26bc2aa30d73d9da2898d
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

22 lines
1009 B
Plaintext

const nodeCore = require('@sentry/node-core');
const initOtel = require('./sdk/initOtel.js');
const debug = nodeCore.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"`
*/
initOtel.preloadOpenTelemetry({ debug, integrations });
//# sourceMappingURL=preload.js.map