Skip to content

[Bug]: diagnostics-otel fails: TypeError: _resources.Resource is not a constructor #11839

@ken00535

Description

@ken00535

Summary

The built-in diagnostics-otel plugin service failed. Initially it reported missing OTEL modules. I installed the required dependencies manually, but now it fails with:

TypeError: _resources.Resource is not a constructor

Steps to reproduce

  1. Install OpenClaw via curl -fsSL https://openclaw.ai/install.sh | bash
  2. Start gateway (LaunchAgent)
  3. Observe logs for diagnostics-otel

Expected behavior

diagnostics-otel works successfully without any error log.

Actual behavior

plugin service failed; errors continue after reinstall/update.

Environment

• OpenClaw: 2026.2.6-3
• OS: macOS 15.5 (arm64)
• Node: 22.22.0
• Install method: curl -fsSL https://openclaw.ai/install.sh | bash (npm global install under /opt/homebrew/lib/node_modules/openclaw)
• Plugin: built-in @openclaw/diagnostics-otel (bundled)

Logs or screenshots

2026-02-08T11:59:02.126Z error plugins {"subsystem":"plugins"} plugin service failed (diagnostics-otel): TypeError: _resources.Resource is not a constructor

Notes

It looks like the diagnostics-otel plugin’s dependency tree might be out of sync with the bundled build, or uses a different OTEL major version where Resource is no longer a constructor. But I don't know how to handle it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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