Skip to content

diagnostics-otel plugin fails: Resource is not a constructor #3201

@jfr992

Description

@jfr992

Description

The diagnostics-otel plugin fails to load with:

plugin service failed (diagnostics-otel): TypeError: _resources.Resource is not a constructor

Steps to Reproduce

  1. 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"
    }
  }
}
  1. Restart gateway
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions