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
[Bug]: opencode run "xyz" fails to load plugin due to 'OTLPLogExporter' not found error #35
opencode run "xyz" fails to load plugin. It throws 'OTLPLogExporter' not found error from exporter-logs-otlp-grpc.
The exact sample plugin with same config works in opencode TUI mode correctly. Logs are sent.
Might be some issue/difference in how opencode actually loads/resolves plugins in CLI mode?
Steps to reproduce
Set 'OPENCODE_ENABLE_TELEMETRY' to '1'
Run OPENCODE_LOG_LEVEL="debug" opencode run
Check logs. Plugin failed to load.
Expected behavior
Plugin loads
Actual behavior
Plugin fails to load
Plugin version
latest
Configuration
OPENCODE_ENABLE_TELEMETRY=1
Relevant log output
ERROR 2026-04-25T08:33:26 +31ms service=plugin path=@devtheops/opencode-plugin-otel target=file:///Users/<user>/.cache/opencode/packages/@devtheops/opencode-plugin-otel@latest/node_modules/@devtheops/opencode-plugin-otel/src/index.ts error=Export named 'OTLPLogExporter' not found in module '/Users/<user>/.cache/opencode/packages/@devtheops/opencode-plugin-otel@latest/node_modules/@opentelemetry/exporter-logs-otlp-grpc/build/src/index.js'. failed to load plugin
Checklist
I have searched existing issues to ensure this hasn't been reported
I have redacted any sensitive information (API keys, tokens, etc.)
Activity
bendtherules commentedon Apr 25, 2026
This also happens in server mode. Run
OPENCODE_LOG_LEVEL="debug" opencode serveand the same issue shows up.So, it essentially happens in both non-TUI modes. Clearly the plugin install process is somehow slightly different there.
bendtherules commentedon Apr 25, 2026
Raised a AI-guided PR fix. I have verified that it works manually.