You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6516d83
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -1323,8 +1323,8 @@ writer is best-effort, not a lossless compliance archive.
1323
1323
-`otel.enabled`: enables the OpenTelemetry export pipeline (default: `false`). For the full configuration, signal catalog, and privacy model, see [OpenTelemetry export](/gateway/opentelemetry).
1324
1324
-`otel.endpoint`: collector URL for OTel export.
1325
1325
-`otel.tracesEndpoint` / `otel.metricsEndpoint` / `otel.logsEndpoint`: optional signal-specific OTLP endpoints. When set, they override `otel.endpoint` for that signal only.
1326
-
-`otel.protocol`: `"http/protobuf"` (default) or `"grpc"`.
1327
-
-`otel.headers`: extra HTTP/gRPC metadata headers sent with OTel export requests.
1326
+
-`otel.protocol`: `"http/protobuf"` (default). gRPC export is retired; run [`openclaw doctor --fix`](/cli/doctor) to repair a persisted legacy value or get source-specific manual-edit guidance.
1327
+
-`otel.headers`: extra HTTP request headers sent with OTel export requests.
1328
1328
-`otel.serviceName`: service name for resource attributes.
-`otel.logsExporter`: log export sink: `"otlp"` (default), `"stdout"` for one JSON object per stdout line, or `"both"`.
@@ -1334,6 +1334,7 @@ writer is best-effort, not a lossless compliance archive.
1334
1334
-`OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental`: environment toggle for latest experimental GenAI inference span shape, including `{gen_ai.operation.name} {gen_ai.request.model}` span names, `CLIENT` span kind, and `gen_ai.provider.name` instead of legacy `gen_ai.system`. By default spans keep `openclaw.model.call` and `gen_ai.system` for compatibility; GenAI metrics use bounded semantic attributes.
1335
1335
-`OPENCLAW_OTEL_PRELOADED=1`: environment toggle for hosts that already registered a global OpenTelemetry SDK. OpenClaw then skips plugin-owned SDK startup/shutdown while keeping diagnostic listeners active.
1336
1336
-`OTEL_EXPORTER_OTLP_TRACES_ENDPOINT`, `OTEL_EXPORTER_OTLP_METRICS_ENDPOINT`, and `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT`: signal-specific endpoint env vars used when the matching config key is unset.
1337
+
-`OTEL_EXPORTER_OTLP_PROTOCOL`: protocol fallback used only when `otel.protocol` is unset. Set it to `http/protobuf` or leave it unset; unsupported values are rejected when an OTLP signal is enabled and are not rewritten by Doctor.
1337
1338
-`cacheTrace.enabled`: log cache trace snapshots for embedded runs (default: `false`).
Or enable the plugin from the CLI: `openclaw plugins enable diagnostics-otel`.
60
60
61
61
<Note>
62
-
`protocol` supports `http/protobuf` only. Since `traces` and `metrics` default to enabled, any other value (including `grpc`) aborts the entire diagnostics-otel subscription with an `unsupported protocol` warning - this also stops stdout log export. Explicitly set `traces: false` and `metrics: false` if you only want `logsExporter: "stdout"` with a non-OTLP protocol value.
62
+
`diagnostics.otel.protocol` accepts only `http/protobuf`. If a persisted config,
63
+
including a value supplied through `${VAR}` interpolation, still resolves this
64
+
field to the retired `grpc` value, run
65
+
[`openclaw doctor --fix`](/cli/doctor). Doctor repairs directly authored values
66
+
and a sole internal single-file include that owns the top-level `diagnostics`
67
+
section. For root or array includes, nested include chains, sibling overrides,
68
+
external include targets, or another ambiguous source, Doctor leaves the files
69
+
unchanged and lists the candidate source file or files to edit manually.
70
+
71
+
`OTEL_EXPORTER_OTLP_PROTOCOL` is a process-environment fallback used only when
72
+
`diagnostics.otel.protocol` is unset. Doctor does not rewrite process
73
+
environment variables. An unsupported fallback is rejected at runtime when an
74
+
OTLP signal is enabled; set it to `http/protobuf` or unset it. A stdout-only log
75
+
configuration does not use the OTLP transport and continues to work.
serviceName:"openclaw-gateway", // unset falls back to OTEL_SERVICE_NAME, then "openclaw"
114
127
metricNamePrefix:"acme.", // optional; include the separator
115
128
headers: { "x-collector-token":"..." },
@@ -144,7 +157,7 @@ dashboards, alerts, and recording rules that query the old names.
144
157
|`OTEL_EXPORTER_OTLP_ENDPOINT`| Fallback for `diagnostics.otel.endpoint` when the config key is unset. |
145
158
|`OTEL_EXPORTER_OTLP_TRACES_ENDPOINT` / `OTEL_EXPORTER_OTLP_METRICS_ENDPOINT` / `OTEL_EXPORTER_OTLP_LOGS_ENDPOINT`| Signal-specific endpoint fallbacks used when the matching `diagnostics.otel.*Endpoint` config key is unset. Signal-specific config wins over signal-specific env, which wins over the shared endpoint. |
146
159
|`OTEL_SERVICE_NAME`| Fallback for `diagnostics.otel.serviceName` when the config key is unset. Default service name is `openclaw`. |
147
-
|`OTEL_EXPORTER_OTLP_PROTOCOL`|Fallback for the wire protocol when `diagnostics.otel.protocol` is unset. Only `http/protobuf` enables export. |
160
+
|`OTEL_EXPORTER_OTLP_PROTOCOL`|Process-environment fallback used only when `diagnostics.otel.protocol` is unset. Only `http/protobuf` enables OTLP export; unsupported values are rejected when an OTLP signal is enabled and are not rewritten by Doctor.|
148
161
|`OTEL_SEMCONV_STABILITY_OPT_IN`| Set to `gen_ai_latest_experimental` to emit the latest GenAI inference span shape: `{gen_ai.operation.name} {gen_ai.request.model}` span names, `CLIENT` span kind, and `gen_ai.provider.name` instead of the legacy `gen_ai.system`. GenAI metrics always use bounded, low-cardinality attributes regardless. |
149
162
|`OPENCLAW_OTEL_PRELOADED`| Set to `1` when another preload or host process already registered the global OpenTelemetry SDK. The plugin then skips its own NodeSDK lifecycle but still wires diagnostic listeners and honors `traces`/`metrics`/`logs`. |
0 commit comments