Skip to content

[telemetry T7] @netscript/telemetry/query dashboard surface #408

Description

@rickylabs

Part of #399 · Part of #301

Handle: T7 · Milestone: 0.0.1-beta.6 · Deps: T2 (subpath). Co-lands with the dashboard epic (#400).

Scope

Proposal §7. Generalize the telemetry-trace.ts.template reader into application/query + adapters/aspire-query over Aspire /api/telemetry/* (traces/traces/{id}/logs/spans/resources, ?follow NDJSON, ?resource filter); the typed TelemetryTrace/TelemetrySpan/TelemetryLog/TelemetryResource contract; robust ephemeral-endpoint + api-key discovery (shared resolver); graceful --no-aspire/prod degradation; exportTraces → portable OTLP-JSON.

Acceptance

  • @netscript/telemetry/query exports the typed reader; resolves the live Aspire base URL in the scaffold.runtime e2e; returns grouped TelemetryTrace by ID; degrades cleanly with no local Aspire.
  • The dashboard data layer (DDX-3) can switch onto it (co-land handshake).
  • Query/export contracts preserve the [telemetry T1] Framework telemetry convention (TC-1..14) + attribute-namespacing law #402 TC-1..14 field vocabulary so dashboard trace views do not invent parallel span or attribute names.

Design source: design/B-telemetry/epic-and-issues.md (T7).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions