add .env.opencode to fix metrics otlp #92

Merged
claudiomaradonna merged 1 commit from env/otlp into master 2026-11-27 18:28:12 +01:00
No description provided.
First-time contributor

Review ready: 1a580725c9

Review ready: 1a580725c905e40c26d936feea586a2c21292368
aramaki left a comment

Review: changes requested

Reviewed 1a580725c905: 2 blocking and 1 minor findings.

What is wrong

  1. .gitignore:13 ignores .env.* under 'Local secrets'; the file entered the tree only by git add -f, against the rule keeping .env.example the sole committed env file.
  2. Only the invoked directory's copy loads (bin/azkaban:1998), so .worktrees/<branch> sessions get nothing, missing the fix's main case.
  3. The third-party opencode-plugin-otel plugin owns OPENCODE_SPAN_ATTRIBUTES; the repo sets no plugin or endpoint, so the stated fix is unverifiable and the body is empty.

Reproduced

  • HEAD matches the given SHA; the diff against origin/master is one line.
  • Verify (make lint && .agents/hooks/shellcheck.sh repo && make test): exit 0, no failures.
  • git check-ignore --no-index .env.opencode gives .gitignore:13:.env.*; the only otlp/otel/telemetry hit in the repo is this line.
  • Loading it through _load_env_file yields OPENCODE_SPAN_ATTRIBUTES=project=azkaban.

Questions and details

  • Where are the plugin and OTLP endpoint set? Identity files outrank this file, so should the attribute live there instead?
  • Would OPENCODE_RESOURCE_ATTRIBUTES fit a project label better?
## Review: changes requested Reviewed `1a580725c905`: 2 blocking and 1 minor findings. **What is wrong** 1. `.gitignore:13` ignores `.env.*` under 'Local secrets'; the file entered the tree only by `git add -f`, against the rule keeping `.env.example` the sole committed env file. 2. Only the invoked directory's copy loads (bin/azkaban:1998), so `.worktrees/<branch>` sessions get nothing, missing the fix's main case. 3. The third-party opencode-plugin-otel plugin owns `OPENCODE_SPAN_ATTRIBUTES`; the repo sets no plugin or endpoint, so the stated fix is unverifiable and the body is empty. **Reproduced** - HEAD matches the given SHA; the diff against origin/master is one line. - Verify (`make lint && .agents/hooks/shellcheck.sh repo && make test`): exit 0, no failures. - `git check-ignore --no-index .env.opencode` gives `.gitignore:13:.env.*`; the only otlp/otel/telemetry hit in the repo is this line. - Loading it through `_load_env_file` yields OPENCODE_SPAN_ATTRIBUTES=project=azkaban. **Questions and details** - Where are the plugin and OTLP endpoint set? Identity files outrank this file, so should the attribute live there instead? - Would `OPENCODE_RESOURCE_ATTRIBUTES` fit a project label better?
@ -0,0 +1 @@
OPENCODE_SPAN_ATTRIBUTES=project=azkaban
First-time contributor

Blocking: Ignored path: adding it needed git add -f. Add !.env.opencode to .gitignore with a reason, or set it in the identity's env.opencode.

**Blocking:** Ignored path: adding it needed `git add -f`. Add `!.env.opencode` to .gitignore with a reason, or set it in the identity's `env.opencode`.
First-time contributor

Blocking: Loads only for the invoked workspace (bin/azkaban:1998), so .worktrees/<branch> sessions get no attribute.

**Blocking:** Loads only for the invoked workspace (bin/azkaban:1998), so `.worktrees/<branch>` sessions get no attribute.
First-time contributor

Minor: Third-party plugin's variable, and no OTLP endpoint or plugin is configured here, so this line alone exports nothing.

**Minor:** Third-party plugin's variable, and no OTLP endpoint or plugin is configured here, so this line alone exports nothing.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
claudiomaradonna/azkaban!92
No description provided.