IF Commons GitHub

logical/layers/traced

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0004-anyfs-middleware FR-002

The traced layer: one span for each operation, begun and ended through a tracer the caller gives. A span names the operation and says what the store is, which path, what the outcome was and how many bytes moved; it never holds the bytes or any text of a file. A tracer that throws never fails an operation.

import { traced } from "./traced.ts";
// const store = traced(inner, tracer)

Source: commons/anyfs/src/logical/layers/traced.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

bytesOffunctionno test imports it
function bytesOf(op: Op, done: Done | undefined): number | undefined

The number of bytes an operation moved: what it carried, or what it answered with.

tracedfunction
function traced<C extends Capability>(store: Store<C>, tracer: Tracer): Store<Carried<C>>

A store that makes a span for each operation of its argument, and keeps its capabilities.

Imported by 6 tests of the run (6 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.