@brizz/sdk 0.1.18 → 0.1.20
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/README.md +15 -2
- package/dist/index.cjs +37 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +37 -23
- package/dist/index.js.map +1 -1
- package/dist/preload.cjs +11 -13
- package/dist/preload.cjs.map +1 -1
- package/dist/preload.js +11 -13
- package/dist/preload.js.map +1 -1
- package/package.json +9 -4
package/dist/preload.js
CHANGED
|
@@ -358,7 +358,7 @@ import {
|
|
|
358
358
|
|
|
359
359
|
// src/internal/version.ts
|
|
360
360
|
function getSDKVersion() {
|
|
361
|
-
return "0.1.
|
|
361
|
+
return "0.1.20";
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
// src/internal/log/processors/log-processor.ts
|
|
@@ -1427,6 +1427,14 @@ import {
|
|
|
1427
1427
|
BatchSpanProcessor,
|
|
1428
1428
|
SimpleSpanProcessor
|
|
1429
1429
|
} from "@opentelemetry/sdk-trace-base";
|
|
1430
|
+
function applyContextAttributes(span) {
|
|
1431
|
+
const sessionProperties = context2.active().getValue(PROPERTIES_CONTEXT_KEY);
|
|
1432
|
+
if (sessionProperties) {
|
|
1433
|
+
for (const [key, value] of Object.entries(sessionProperties)) {
|
|
1434
|
+
span.setAttribute(`${BRIZZ}.${key}`, value);
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1430
1438
|
var DEFAULT_MASKING_RULES = [
|
|
1431
1439
|
{
|
|
1432
1440
|
mode: "partial",
|
|
@@ -1461,12 +1469,7 @@ var BrizzSimpleSpanProcessor = class extends SimpleSpanProcessor {
|
|
|
1461
1469
|
if (maskingConfig) {
|
|
1462
1470
|
maskSpan(span, maskingConfig);
|
|
1463
1471
|
}
|
|
1464
|
-
|
|
1465
|
-
if (associationProperties) {
|
|
1466
|
-
for (const [key, value] of Object.entries(associationProperties)) {
|
|
1467
|
-
span.setAttribute(`${BRIZZ}.${key}`, value);
|
|
1468
|
-
}
|
|
1469
|
-
}
|
|
1472
|
+
applyContextAttributes(span);
|
|
1470
1473
|
super.onStart(span, parentContext);
|
|
1471
1474
|
}
|
|
1472
1475
|
};
|
|
@@ -1481,12 +1484,7 @@ var BrizzBatchSpanProcessor = class extends BatchSpanProcessor {
|
|
|
1481
1484
|
if (maskingConfig) {
|
|
1482
1485
|
maskSpan(span, maskingConfig);
|
|
1483
1486
|
}
|
|
1484
|
-
|
|
1485
|
-
if (associationProperties) {
|
|
1486
|
-
for (const [key, value] of Object.entries(associationProperties)) {
|
|
1487
|
-
span.setAttribute(`${BRIZZ}.${key}`, value);
|
|
1488
|
-
}
|
|
1489
|
-
}
|
|
1487
|
+
applyContextAttributes(span);
|
|
1490
1488
|
super.onStart(span, parentContext);
|
|
1491
1489
|
}
|
|
1492
1490
|
};
|