@maple-dev/browser 0.11.1 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as selectorOf, G as scrubUrl, K as mayUseStorage, L as consentAllowedSince, O as sdkHint, R as consentRevokedAt, S as ingestHeaders, V as onConsentChange, l as onSessionEvent, z as hasConsent } from "./sink-DbEuphC-.mjs";
|
|
2
|
-
import { _ as severityOf, a as detachLogSink, c as resourceAttributes, d as OtlpExporter, f as newestFirstOnExit, g as Severity, h as onErrorRecorded, i as attachLogSink, l as SDK_NAME, m as claimPageSignal, n as navigationSpanAt, o as emitLog, p as attachSpanStash, r as onDocumentPageload, s as liveMapleTracer, u as SDK_VERSION } from "./src-
|
|
2
|
+
import { _ as severityOf, a as detachLogSink, c as resourceAttributes, d as OtlpExporter, f as newestFirstOnExit, g as Severity, h as onErrorRecorded, i as attachLogSink, l as SDK_NAME, m as claimPageSignal, n as navigationSpanAt, o as emitLog, p as attachSpanStash, r as onDocumentPageload, s as liveMapleTracer, u as SDK_VERSION } from "./src-DfU4Cnb1.mjs";
|
|
3
3
|
import { t as installConsoleCapture } from "./console-Bkd3hBGp.mjs";
|
|
4
4
|
import { ROOT_CONTEXT, TraceFlags, context, trace } from "@opentelemetry/api";
|
|
5
5
|
import { JsonLogsSerializer, JsonTraceSerializer } from "@opentelemetry/otlp-transformer";
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as MapleBrowser } from "./src-
|
|
1
|
+
import { t as MapleBrowser } from "./src-DfU4Cnb1.mjs";
|
|
2
2
|
export { MapleBrowser };
|
package/dist/react.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as reserveKeepalive, F as withStartedTraceId, G as scrubUrl, K as mayUseStorage, M as safeEmit, N as activeTraceId, R as consentRevokedAt, T as postSessionMeta, W as isJsonObject, d as startEventSink, g as nextChunkSeq, h as markReplayTriggered, j as BLOCK_SELECTOR, k as warnDropped, m as markActivity, n as getObservedTraceIds, o as startSessionLifecycle, r as publishSessionSink, w as postSessionBlob, x as gzip } from "./sink-DbEuphC-.mjs";
|
|
2
|
-
import { v as PENDING_CHUNK_KEY, y as clearPendingChunk } from "./src-
|
|
2
|
+
import { v as PENDING_CHUNK_KEY, y as clearPendingChunk } from "./src-DfU4Cnb1.mjs";
|
|
3
3
|
import { t as installConsoleCapture } from "./console-Bkd3hBGp.mjs";
|
|
4
4
|
import { record } from "rrweb";
|
|
5
5
|
//#region ../browser-session/src/replay/capture/network.ts
|
|
@@ -923,7 +923,7 @@ function newestFirstOnExit(inner, serializer, olderReserve = 0) {
|
|
|
923
923
|
}
|
|
924
924
|
//#endregion
|
|
925
925
|
//#region src/version.ts
|
|
926
|
-
const SDK_VERSION = "0.
|
|
926
|
+
const SDK_VERSION = "0.12.0";
|
|
927
927
|
/** The `x-maple-sdk` value this build sends. */
|
|
928
928
|
const SDK_NAME = "maple-browser";
|
|
929
929
|
//#endregion
|
|
@@ -1405,7 +1405,7 @@ function navigationSpanAt(epochMs) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
/** End the open navigation as interrupted: something other than its route finishing ended it. */
|
|
1407
1407
|
function interruptNavigation() {
|
|
1408
|
-
navigation?.span.setAttribute("
|
|
1408
|
+
navigation?.span.setAttribute("maple.navigation.interrupted", true);
|
|
1409
1409
|
navigation?.span.end();
|
|
1410
1410
|
navigation = void 0;
|
|
1411
1411
|
}
|
|
@@ -1575,7 +1575,7 @@ function init(rawConfig) {
|
|
|
1575
1575
|
if (config.tracingEnabled && config.tracingCaptureErrors && !stopErrorCapture) stopErrorCapture = setupErrorCapture();
|
|
1576
1576
|
if (!deferredPending) {
|
|
1577
1577
|
setLogIdentity(() => activeConfig?.identity?.id);
|
|
1578
|
-
deferredPending = import("./deferred-
|
|
1578
|
+
deferredPending = import("./deferred-BDKAWiKZ.mjs").then(({ startDeferred }) => {
|
|
1579
1579
|
stopDeferred = startDeferred(config);
|
|
1580
1580
|
}).catch(() => {});
|
|
1581
1581
|
}
|
|
@@ -1609,7 +1609,7 @@ function init(rawConfig) {
|
|
|
1609
1609
|
runtime = next;
|
|
1610
1610
|
const ownGeneration = ++generation;
|
|
1611
1611
|
const stale = () => stopped || !hasConsent() || generation !== ownGeneration || runtime !== next;
|
|
1612
|
-
next.replayPending = import("./replay-session-
|
|
1612
|
+
next.replayPending = import("./replay-session-Cg3U1RS0.mjs").then(({ startReplaySession }) => {
|
|
1613
1613
|
if (stale()) return;
|
|
1614
1614
|
next.replay = startReplaySession({
|
|
1615
1615
|
...shared,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maple-dev/browser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "Maple browser SDK — OpenTelemetry tracing and rrweb session replay in one package. Every span and replay event shares a session id for trace↔replay correlation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"maple",
|