Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0004-anyfs-middleware FR-002
The tracer of the traced layer, made from the telemetry of commons: one declared span kind, anyfs.op, whose attributes are the store, the operation, the path, the outcome and the number of bytes, never the bytes themselves. A span begins when the operation does and ends, with its outcome, when it has an answer.
import { ANYFS_SIGNALS, tracerOf } from "./mod.ts" ;
// const tracer = tracerOf(createTelemetry({ registry: ANYFS_SIGNALS, ... })) Source: commons/anyfs/src/physical/telemetry.ts
0 of 3 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.
ANYFS_SIGNALSconst no test imports it const ANYFS_SIGNALS : Registry <{ readonly "anyfs.op" : { readonly signal : "span" ; readonly role : "step" ; readonly attributes : { readonly store : "string" ; readonly op : "string" ; readonly "path?" : "string" ; readonly "outcome?" : "string" ; readonly "bytes?" : "int" ; }; }; }>The registry of the signals the traced layer makes.
AnyfsTelemetrytype no test imports it type AnyfsTelemetry = signals .Telemetry <typeof DECLARATIONS >;Where the spans of the traced layer go: a telemetry made with ANYFS_SIGNALS.
tracerOffunction no test imports it function tracerOf (telemetry : AnyfsTelemetry ): Tracer The tracer of a telemetry: each span it starts is a span of the telemetry, ended with the outcome.