RuView icon indicating copy to clipboard operation
RuView copied to clipboard

Opt-in OpenTelemetry log export for the sensing server — PR #1382 ready for review

Open jensholdgaard opened this issue 4 months ago • 1 comments

Would you take opt-in OTel logs export for the sensing server? PR #1382 has it ready: sensing events (presence transitions, classifier decisions, source health) emitted as structured OTLP log events under a ruview.* namespace, so they land in any OTel-compatible backend alongside existing telemetry.

It's opt-in only — zero change to default behavior (nothing is emitted unless the exporter is configured), and the event names/attributes are defined in a semantic-conventions registry checked in CI, so the telemetry surface can't drift from the docs.

Two practical notes: as a first-time contributor my workflow runs need an "Approve and run" click before the PR can show green, and if the registry/CI half makes the review too big in one bite, I'm happy to split it — minimal opt-in exporter first, registry enforcement second.

Rebased onto current main as of today; sensing-server suite passes (775 tests).

jensholdgaard avatar Jul 28 '26 13:07 jensholdgaard

Thanks — the capability is a good fit as an opt-in sensing-server feature, and I reviewed PR #1382 in detail. I left a changes-requested review covering three concrete gaps: default stderr output currently changes even when OTel is disabled, a sync-before-CSI sequence suppresses ruview.node.online, and the generated attribute/schema contract is not fully connected to emitted records.

Once those are addressed and regression coverage is added, we can approve the first-time-contributor workflow run and evaluate the resulting build/security checks. No split is required yet; the exporter + registry remain coherent as one PR if these fixes stay scoped.

ruvnet avatar Jul 28 '26 23:07 ruvnet