Description
The diagnostics-otel plugin fails to load with:
plugin service failed (diagnostics-otel): TypeError: _resources.Resource is not a constructor
Steps to Reproduce
- Enable the plugin:
{
"plugins": {
"allow": ["diagnostics-otel"],
"entries": { "diagnostics-otel": { "enabled": true } }
},
"diagnostics": {
"enabled": true,
"otel": {
"enabled": true,
"endpoint": "http://127.0.0.1:4318"
}
}
}
- Restart gateway
- Check logs:
cat /tmp/clawdbot/clawdbot-*.log | grep otel
Environment
- Clawdbot version: 2026.1.24-3
- Node: v25.4.0
- OS: macOS 15.6 (arm64)
Expected
Plugin loads and exports traces/metrics to OTEL collector.
Actual
Plugin crashes on startup due to OpenTelemetry SDK version mismatch.
Likely cause: The bundled @opentelemetry packages have breaking changes between versions. The plugin may need pinned versions or updated imports.
Description
The
diagnostics-otelplugin fails to load with:Steps to Reproduce
{ "plugins": { "allow": ["diagnostics-otel"], "entries": { "diagnostics-otel": { "enabled": true } } }, "diagnostics": { "enabled": true, "otel": { "enabled": true, "endpoint": "http://127.0.0.1:4318" } } }cat /tmp/clawdbot/clawdbot-*.log | grep otelEnvironment
Expected
Plugin loads and exports traces/metrics to OTEL collector.
Actual
Plugin crashes on startup due to OpenTelemetry SDK version mismatch.
Likely cause: The bundled @opentelemetry packages have breaking changes between versions. The plugin may need pinned versions or updated imports.