Skip to content

feat: record queued events with a metrics endpoint - #58

Merged
tbhb-agent merged 1 commit into
mainfrom
gm-recorder-wire
Nov 15, 2026
Merged

tbhb-agent merged 1 commit into
mainfrom
gm-recorder-wire

Conversation

@tbhb-agent

Copy link
Copy Markdown
Collaborator

Why

Part A added the recorder. This change connects it to the command, so the queue can drain once metrics have a destination.

Behavior change

The command sets up telemetry at startup. With OTEL_EXPORTER_OTLP_ENDPOINT present, the worker uses the real recorder and removes an entry after the recorder counts it. Without the variable, the worker keeps the refusing placeholder and every entry remains queued. A startup log line names the mode. It omits the endpoint. Telemetry shuts down after the worker stops, which flushes the final metrics.

Verification

The full Bazel test run passed with 30 tests and one skipped. New command tests cover both modes and the refusing placeholder.

Opened-by: LLM effort=medium;harness=claude-code:2.1.325;model=anthropic:claude-sonnet-5-5;session=sha-256-64:6507fa80a17e0653;surface=cli
Generated-by: LLM effort=high;harness=codex:0.164.0;model=openai:gpt-6.1-sol;session=sha-256-64:1227ca83b5e17814;surface=exec
Assisted-by: LLM effort=medium;harness=claude-code:2.1.325;model=anthropic:claude-sonnet-5-5;session=sha-256-64:6507fa80a17e0653;surface=cli

Generated-by: LLM effort=high;harness=codex:0.164.0;model=openai:gpt-6.1-sol;session=sha-256-64:1227ca83b5e17814;surface=exec
@tbhb-agent
tbhb-agent merged commit 43a9349 into main Nov 15, 2026
8 checks passed
@tbhb-agent
tbhb-agent deleted the gm-recorder-wire branch November 15, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant