Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Adds OpenTelemetry tracing to frontend and backend flows, using the observability facade and trace propagation across services.
32% 100%+68 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 7 of 22 without it.
This test ran on v2. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
New flows and hot paths ship instrumented, in the same change. The standard is the observability rule: one connected trace from the user's action through every service, with phases timed and the entity id on the spans. This skill is how to meet it.
Before writing code, sketch the trace you want to read during an incident:
navigation (browser interaction)
└─ view.<route> (caller-owned loading flow)
├─ document.load / block.data
│ └─ doc.load → doc.load.context (HTTP → DSS)
├─ doc.snapshot.*
└─ doc.editor
└─ doc.editor.initialize (initial sync → editor ready)
One root span per user action, one child per phase a reader would ask about (network, queue wait, processing, each external call), and the id you'd search by on the root.
Use the @macro-inc/observability facade (packages/observability); never
import OpenTelemetry directly.
Telemetry.span(name, fn) for a phase; span.span(name, fn) for a child.
Telemetry.span(name, { kind: 'client' }) for an outbound call, then
span.injectTraceHeaders(headers).Telemetry.span(name, { sampling: 'perf' }) puts a trace in a sampling
class; without one it is always kept. See
What gets exported.span.setAttr(key, value) for ids and counts; span.error(message) on
failure; manual spans must end() on every path.StackContextManager, so after an await
call parent.span(...), or wrap later dispatch in parent.run(...); see theNext to this one in the catalogue, plus more from the same author.