Skip to content

[Bug] diagnostics-otel plugin fails to load: "Cannot find module '@opentelemetry/api'" #6989

@Gaurang-Patel

Description

@Gaurang-Patel

Description
The diagnostics-otel plugin fails to initialize on startup in OpenClaw v2026.1.30. It appears the @opentelemetry/api dependency is missing from the installed package, causing the plugin to crash during the load phase.

To Reproduce

  1. Install OpenClaw v2026.1.30
  2. Run openclaw gateway status or check logs
  3. Observe the "Cannot find module" error for diagnostics-otel

Expected behavior
The plugin should load successfully and begin exporting telemetry as configured.

Actual behavior
The plugin fails to load with a MODULE_NOT_FOUND error.

Error Log

[plugins] diagnostics-otel failed to load from /home/ubuntu/.npm-global/lib/node_modules/openclaw/extensions/diagnostics-otel/index.ts: 
Error: Cannot find module '@opentelemetry/api'
Require stack:
- /home/ubuntu/.npm-global/lib/node_modules/openclaw/extensions/diagnostics-otel/src/service.ts

Environment

  • OpenClaw Version: 2026.1.30
  • OS: Linux 6.14.0-1012-oracle (arm64)
  • Node Version: v22.22.0
  • Install Path: /home/ubuntu/.npm-global/lib/node_modules/openclaw/extensions/diagnostics-otel/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleMarked as stale due to inactivity

    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