Skip to content

Add plugin-side OTel metrics instrumentation - #65

Open
simsteward wants to merge 1 commit into
mainfrom
feat/plugin-otel-metrics
Open

Add plugin-side OTel metrics instrumentation#65
simsteward wants to merge 1 commit into
mainfrom
feat/plugin-otel-metrics

Conversation

@simsteward

Copy link
Copy Markdown
Owner

Summary

  • Adds PluginMetricsTelemetry OTLP metrics export, wired into the existing metrics-telemetry init path
  • Instruments: DataUpdate tick interval/Hz, WS broadcast duration + skip reasons (throttle/no-clients), send errors, action-dispatch duration, incident-detection duration (live + replay sweep), replay index build duration/completion, and live replay-build progress %
  • Follows the same enable-via-env-var pattern as the existing host/process resource sampler (OTEL_EXPORTER_OTLP_ENDPOINT / SIMSTEWARD_OTLP_ENDPOINT)

Test plan

  • dotnet build SimSteward.sln — 0 errors
  • dotnet test — full suite green
  • Deploy via deploy.ps1 and confirm metrics land in the local OTel collector / Grafana Cloud Mimir during a live session

🤖 Generated with Claude Code

Adds OTLP metrics export (PluginMetricsTelemetry) covering DataUpdate
tick interval/Hz, WS broadcast duration and skip reasons, send errors,
action dispatch duration, incident-detection duration (live + replay
sweep), and replay index build duration/completion + live progress %.
Enabled via OTEL_EXPORTER_OTLP_ENDPOINT / SIMSTEWARD_OTLP_ENDPOINT, same
pattern as the existing host/process resource sampler.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

2 participants