@openclaw/diagnostics-otel 2026.11.2 → 2026.11.4
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.
|
@@ -199,7 +199,7 @@ const MAX_OTEL_REDACTED_JSON_CANDIDATE_CHARS = 4 * MAX_OTEL_CONTENT_ATTRIBUTE_CH
|
|
|
199
199
|
function safeJsonString(value, redact = createOtelContentRedactor()) {
|
|
200
200
|
if (value === void 0 || typeof value === "function" || typeof value === "symbol") return;
|
|
201
201
|
const json = serializeJsonForOtelAttribute(value);
|
|
202
|
-
const exact = redactJsonWithinAttributeBudget(
|
|
202
|
+
const exact = json && json.length <= MAX_OTEL_REDACTED_JSON_CANDIDATE_CHARS ? redactJsonWithinAttributeBudget(serializeJsonForOtelAttribute(value, redact)) : void 0;
|
|
203
203
|
if (exact) return exact;
|
|
204
204
|
for (const maxArrayItems of JSON_TRUNCATION_ARRAY_ITEM_BUDGETS) for (const maxStringChars of JSON_TRUNCATION_STRING_BUDGETS) {
|
|
205
205
|
const truncated = redactJsonWithinAttributeBudget(serializeJsonForOtelAttribute(truncateJsonValueForOtelAttribute(value, maxArrayItems, maxStringChars, redact)));
|
|
@@ -211,9 +211,9 @@ function safeJsonString(value, redact = createOtelContentRedactor()) {
|
|
|
211
211
|
type: describeJsonValue(value)
|
|
212
212
|
}));
|
|
213
213
|
}
|
|
214
|
-
function serializeJsonForOtelAttribute(value) {
|
|
214
|
+
function serializeJsonForOtelAttribute(value, redact) {
|
|
215
215
|
try {
|
|
216
|
-
return JSON.stringify(value) || void 0;
|
|
216
|
+
return JSON.stringify(value, redact ? (_key, field) => typeof field === "string" ? redact(field) : field : void 0) || void 0;
|
|
217
217
|
} catch {
|
|
218
218
|
return;
|
|
219
219
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as createDiagnosticsOtelService } from "./.setup/runtime-api-
|
|
1
|
+
import { t as createDiagnosticsOtelService } from "./.setup/runtime-api-CKuEF9bs.mjs";
|
|
2
2
|
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
3
3
|
//#region extensions/diagnostics-otel/index.ts
|
|
4
4
|
var diagnostics_otel_default = definePluginEntry({
|
package/dist/runtime-api.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createDiagnosticsOtelService } from "./.setup/runtime-api-
|
|
1
|
+
import { t as createDiagnosticsOtelService } from "./.setup/runtime-api-CKuEF9bs.mjs";
|
|
2
2
|
export { createDiagnosticsOtelService };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/diagnostics-otel",
|
|
3
|
-
"version": "2026.11.
|
|
3
|
+
"version": "2026.11.4",
|
|
4
4
|
"description": "OpenClaw diagnostics OpenTelemetry exporter for metrics, traces, and logs.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"minHostVersion": ">=2026.4.25"
|
|
35
35
|
},
|
|
36
36
|
"compat": {
|
|
37
|
-
"pluginApi": ">=2026.11.
|
|
37
|
+
"pluginApi": ">=2026.11.4"
|
|
38
38
|
},
|
|
39
39
|
"build": {
|
|
40
|
-
"openclawVersion": "2026.11.
|
|
40
|
+
"openclawVersion": "2026.11.4"
|
|
41
41
|
},
|
|
42
42
|
"release": {
|
|
43
43
|
"publishToClawHub": true,
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"assets/activity.svg"
|
|
56
56
|
],
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"openclaw": ">=2026.11.
|
|
58
|
+
"openclaw": ">=2026.11.4"
|
|
59
59
|
},
|
|
60
60
|
"peerDependenciesMeta": {
|
|
61
61
|
"openclaw": {
|