add .env.opencode to fix metrics otlp #262

Merged
claudiomaradonna merged 1 commit from env/otlp into main 2026-11-27 18:26:10 +01:00
No description provided.
add .env.opencode to fix metrics otlp
All checks were successful
Maintenance / checks (pull_request) Successful in 8m3s
Maintenance / checks (push) Successful in 6m23s
d7893e2723
First-time contributor

Review ready: d7893e2723

Review ready: d7893e27232fde1bce4a2849123c855f636363a1
aramaki left a comment

Review: changes requested

Reviewed d7893e27232f: 2 blocking and 0 minor findings.

What is wrong

  1. Nothing loads .env.opencode: OpenCode does not auto-load project .env files, and OPENCODE_SPAN_ATTRIBUTES is read by the external, unconfigured @devtheops/opencode-plugin-otel from the process environment. The metrics fix does not happen.
  2. Commits a file .gitignore treats as a local secret (.env.*; only .env.example exempt), force-added; .claude/settings.json denies reads of ./.env.*, and docs/SANDBOX.md says committed .env files break sandboxed git.
  3. Commit message violates the repository's Conventional Commits rule; no description, docs, or tests.

Reproduced

  • rev-parse HEAD prints the head SHA; head is now main's tip, so I reviewed the commit against parent 4c9650f: one added line.
  • scripts/verify-agent-config.sh passes; the repository has no opencode.json(c) and no otel reference.

Questions and details

  • Should the tag instead be plugin options in a new .opencode/opencode.json, or a shell-profile export, as the plugin README recommends?
## Review: changes requested Reviewed `d7893e27232f`: 2 blocking and 0 minor findings. **What is wrong** 1. Nothing loads `.env.opencode`: OpenCode does not auto-load project `.env` files, and `OPENCODE_SPAN_ATTRIBUTES` is read by the external, unconfigured `@devtheops/opencode-plugin-otel` from the process environment. The metrics fix does not happen. 2. Commits a file `.gitignore` treats as a local secret (`.env.*`; only `.env.example` exempt), force-added; `.claude/settings.json` denies reads of `./.env.*`, and docs/SANDBOX.md says committed `.env` files break sandboxed git. 3. Commit message violates the repository's Conventional Commits rule; no description, docs, or tests. **Reproduced** - `rev-parse HEAD` prints the head SHA; head is now main's tip, so I reviewed the commit against parent 4c9650f: one added line. - `scripts/verify-agent-config.sh` passes; the repository has no `opencode.json(c)` and no otel reference. **Questions and details** - Should the tag instead be plugin options in a new `.opencode/opencode.json`, or a shell-profile export, as the plugin README recommends?
@ -0,0 +1 @@
OPENCODE_SPAN_ATTRIBUTES=project=agent-foundry
First-time contributor

Blocking: Nothing loads this file: OpenCode does not auto-load project .env files, and OPENCODE_SPAN_ATTRIBUTES is read by the external @devtheops/opencode-plugin-otel from the process environment, which this repository never configures.

**Blocking:** Nothing loads this file: OpenCode does not auto-load project `.env` files, and `OPENCODE_SPAN_ATTRIBUTES` is read by the external `@devtheops/opencode-plugin-otel` from the process environment, which this repository never configures.
First-time contributor

Blocking: Commits a file .gitignore treats as a local secret (.env.*; only .env.example exempt), force-added; .claude/settings.json denies reads of ./.env.*, and docs/SANDBOX.md says committed .env files break sandboxed git.

**Blocking:** Commits a file `.gitignore` treats as a local secret (`.env.*`; only `.env.example` exempt), force-added; `.claude/settings.json` denies reads of `./.env.*`, and docs/SANDBOX.md says committed `.env` files break sandboxed git.
Sign in to join this conversation.
No description provided.