Files
klz-cables.com/.pnpm-store/v10/files/fa/3d4773265d60021bf02ba6193651ce11025b340e42c2b3df03ae25b021c865c6e72d0236c41e61a83ef1656c59fad9c549462d4fd879cc46a7143dbdc84cc0
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

45 lines
1.4 KiB
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const instrumentation = require('@opentelemetry/instrumentation');
const core = require('@sentry/core');
const firestore = require('./patches/firestore.js');
const functions = require('./patches/functions.js');
const DefaultFirebaseInstrumentationConfig = {};
const firestoreSupportedVersions = ['>=3.0.0 <5']; // firebase 9+
const functionsSupportedVersions = ['>=6.0.0 <7']; // firebase-functions v2
/**
* Instrumentation for Firebase services, specifically Firestore.
*/
class FirebaseInstrumentation extends instrumentation.InstrumentationBase {
constructor(config = DefaultFirebaseInstrumentationConfig) {
super('@sentry/instrumentation-firebase', core.SDK_VERSION, config);
}
/**
* sets config
* @param config
*/
setConfig(config = {}) {
super.setConfig({ ...DefaultFirebaseInstrumentationConfig, ...config });
}
/**
*
* @protected
*/
// eslint-disable-next-line @typescript-eslint/naming-convention
init() {
const modules = [];
modules.push(firestore.patchFirestore(this.tracer, firestoreSupportedVersions, this._wrap, this._unwrap, this.getConfig()));
modules.push(functions.patchFunctions(this.tracer, functionsSupportedVersions, this._wrap, this._unwrap, this.getConfig()));
return modules;
}
}
exports.FirebaseInstrumentation = FirebaseInstrumentation;
//# sourceMappingURL=firebaseInstrumentation.js.map