Description
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
Description
opencode run "xyz"fails to load plugin. It throws 'OTLPLogExporter' not found error fromexporter-logs-otlp-grpc.Steps to reproduce
OPENCODE_LOG_LEVEL="debug" opencode runExpected behavior
Plugin loads
Actual behavior
Plugin fails to load
Plugin version
latest
Configuration
Relevant log output
Checklist