add .env.opencode to fix metrics otlp #59

Merged
claudiomaradonna merged 1 commit from env/otlp into main 2026-11-27 18:31:44 +01:00
No description provided.
add .env.opencode to fix metrics otlp
All checks were successful
check / check (pull_request) Successful in 20m36s
check / check (push) Successful in 20m27s
810c34a351
First-time contributor

Review ready: 810c34a351

Review ready: 810c34a351e9b5daf9fe0f9ffdf3964304e775ee
aramaki left a comment

Review: changes requested

Reviewed 810c34a351e9: 2 blocking and 0 minor findings.

What is wrong

  1. The tracked file sits in the repo's .env.* local-secrets namespace: the parent's .gitignore ignores it (force-add required) and .claude/settings.json denies agent reads, contradicting policy.
  2. The claimed OTLP fix is unverified: no repo code or OpenCode V2 doc reads .env.opencode or OPENCODE_SPAN_ATTRIBUTES, so nothing loads it.
  3. The commit message breaks the repo's Conventional Commits rule.

Reproduced

  • git rev-parse HEAD matches the head SHA; origin/main is that same commit, so the base diff is empty — reviewed against parent 58e673c.
  • git check-ignore --no-index matches .gitignore's .env.* (Local secrets); grep finds no repo reader for the file or variable.
  • make setup and make check pass at HEAD; make test unrun — no rootless podman here.

Questions and details

  • Has PR #59 already merged? main's tip is the head commit.
  • Which tool reads .env.opencode? If OpenCode telemetry tagging is intended, would a documented project config (.opencode/opencode.json) be the right home?
## Review: changes requested Reviewed `810c34a351e9`: 2 blocking and 0 minor findings. **What is wrong** 1. The tracked file sits in the repo's `.env.*` local-secrets namespace: the parent's .gitignore ignores it (force-add required) and `.claude/settings.json` denies agent reads, contradicting policy. 2. The claimed OTLP fix is unverified: no repo code or OpenCode V2 doc reads `.env.opencode` or `OPENCODE_SPAN_ATTRIBUTES`, so nothing loads it. 3. The commit message breaks the repo's Conventional Commits rule. **Reproduced** - `git rev-parse HEAD` matches the head SHA; origin/main is that same commit, so the base diff is empty — reviewed against parent 58e673c. - `git check-ignore --no-index` matches `.gitignore`'s `.env.*` (Local secrets); grep finds no repo reader for the file or variable. - `make setup` and `make check` pass at HEAD; `make test` unrun — no rootless podman here. **Questions and details** - Has PR #59 already merged? main's tip is the head commit. - Which tool reads `.env.opencode`? If OpenCode telemetry tagging is intended, would a documented project config (`.opencode/opencode.json`) be the right home?
@ -0,0 +1 @@
OPENCODE_SPAN_ATTRIBUTES=project=castrum
First-time contributor

Blocking: Committed into the .env.* secrets namespace: .gitignore ignores it and Claude's settings deny reads; force-added. Move it to a documented config location.

**Blocking:** Committed into the `.env.*` secrets namespace: .gitignore ignores it and Claude's settings deny reads; force-added. Move it to a documented config location.
First-time contributor

Blocking: Nothing in the repo or the OpenCode V2 docs reads this file or OPENCODE_SPAN_ATTRIBUTES; the metrics fix is unverified. Point to its reader.

**Blocking:** Nothing in the repo or the OpenCode V2 docs reads this file or OPENCODE_SPAN_ATTRIBUTES; the metrics fix is unverified. Point to its reader.
Sign in to join this conversation.
No description provided.