@blueking/open-telemetry 0.0.25 → 0.0.26
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.
- package/dist/bk-rum.global.js +1 -1
- package/dist/bk-rum.global.js.map +1 -1
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/dist/plugins/device.d.ts +1 -1
- package/dist/schema/attributes.d.ts +1 -1
- package/package.json +1 -1
- package/skills/bk-rum-otele/references/session-context.md +1 -1
- package/skills/bk-rum-otele/references/telemetry-reference.md +3 -4
- package/skills/bk-rum-otele/references/views-routing.md +2 -4
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { resourceFromAttributes as c } from "@opentelemetry/resources";
|
|
|
6
6
|
import { BatchSpanProcessor as l, SamplingDecision as u, SimpleSpanProcessor as d } from "@opentelemetry/sdk-trace-base";
|
|
7
7
|
import { WebTracerProvider as f } from "@opentelemetry/sdk-trace-web";
|
|
8
8
|
//#region package.json
|
|
9
|
-
var p = "0.0.
|
|
9
|
+
var p = "0.0.26", m = (e) => {
|
|
10
10
|
let t = 5381;
|
|
11
11
|
for (let n = 0; n < e.length; n++) t = t * 33 ^ e.charCodeAt(n);
|
|
12
12
|
return (t >>> 0).toString(36);
|
|
@@ -55,10 +55,10 @@ var p = "0.0.25", m = (e) => {
|
|
|
55
55
|
viewId: "view.id",
|
|
56
56
|
viewLoadEvent: "view.load_event",
|
|
57
57
|
viewLoadingTime: "view.loading_time",
|
|
58
|
+
viewLoadingTimeSource: "view.loading_time_source",
|
|
58
59
|
viewLoadingType: "view.loading_type",
|
|
59
60
|
viewName: "view.name",
|
|
60
61
|
viewPhase: "view.phase",
|
|
61
|
-
viewSource: "view.source",
|
|
62
62
|
viewStartedAt: "view.started_at",
|
|
63
63
|
viewUrl: "view.url",
|
|
64
64
|
viewUrlPathGroup: "view.url_path_group",
|
|
@@ -173,7 +173,7 @@ var C = "BK_RUM_DEVICE_ID", w = 250, T = () => navigator.connection, ee = () =>
|
|
|
173
173
|
return {
|
|
174
174
|
[g.networkStatus]: navigator.onLine ? "connected" : "not_connected",
|
|
175
175
|
"network.effective_type": e == null ? void 0 : e.effectiveType,
|
|
176
|
-
"network.
|
|
176
|
+
"network.connection.type": e == null ? void 0 : e.type
|
|
177
177
|
};
|
|
178
178
|
}, oe = () => {
|
|
179
179
|
if (typeof navigator > "u") return {};
|
|
@@ -1559,7 +1559,7 @@ var yn = ["stopLoadingTime"], bn = new Set(Object.values(g)), xn = () => typeof
|
|
|
1559
1559
|
[g.viewVersion]: e.version
|
|
1560
1560
|
}, i ? { "view.end_reason": i } : {}), e.loadingTime === void 0 ? {} : {
|
|
1561
1561
|
[g.viewLoadingTime]: e.loadingTime,
|
|
1562
|
-
|
|
1562
|
+
[g.viewLoadingTimeSource]: e.loadingTimeSource
|
|
1563
1563
|
}), {
|
|
1564
1564
|
contextTime: r,
|
|
1565
1565
|
startTime: r
|
|
@@ -1578,7 +1578,7 @@ var yn = ["stopLoadingTime"], bn = new Set(Object.values(g)), xn = () => typeof
|
|
|
1578
1578
|
if (n !== e || !Number.isFinite(t) || t < 0) return;
|
|
1579
1579
|
let i = S(S({}, e.loadingType === "initial_load" ? Sn() : {}), {}, {
|
|
1580
1580
|
[g.viewLoadingTime]: t,
|
|
1581
|
-
|
|
1581
|
+
[g.viewLoadingTimeSource]: r
|
|
1582
1582
|
});
|
|
1583
1583
|
Object.assign(e.snapshotAttributes, i), e.loadingTime = t, e.loadingTimeSource = r, o(e, "update");
|
|
1584
1584
|
}, l = (e) => {
|
|
@@ -1640,8 +1640,7 @@ var yn = ["stopLoadingTime"], bn = new Set(Object.values(g)), xn = () => typeof
|
|
|
1640
1640
|
[g.viewUrl]: y,
|
|
1641
1641
|
[g.viewUrlPathGroup]: p,
|
|
1642
1642
|
[g.viewLoadingType]: i,
|
|
1643
|
-
"url.previous": b
|
|
1644
|
-
[g.viewSource]: r
|
|
1643
|
+
"url.previous": b
|
|
1645
1644
|
}, x ? { "document.referrer": t.config.hooks.redactUrl(document.referrer || "") } : {}),
|
|
1646
1645
|
startedAt: C,
|
|
1647
1646
|
url: y,
|