@sentry/browser
Version:
Official Sentry SDK for browsers
24 lines (23 loc) • 869 B
JavaScript
const require_linkedTraces = require("../tracing/linkedTraces.js");
let _sentry_core = require("@sentry/core");
let _sentry_browser_utils = require("@sentry/browser-utils");
// src/integrations/linkedTraces.ts
const _linkedTracesIntegration = ((options = {}) => {
const { storage = "in-memory", consistentTraceSampling = false } = options;
return {
name: "LinkedTraces",
setup(client) {
if ((0, _sentry_browser_utils.isBotUserAgent)()) return;
require_linkedTraces.linkTraces(client, {
linkPreviousTrace: storage,
consistentTraceSampling
});
}
};
});
/**
* Links each new trace to the previous one, so you can navigate between traces in Sentry.
*/
const linkedTracesIntegration = (0, _sentry_core.defineIntegration)(_linkedTracesIntegration);
exports.linkedTracesIntegration = linkedTracesIntegration;
//# sourceMappingURL=linkedTraces.js.map