MCPcopy Create free account
hub / github.com/cloudflare/computer / span

Method span

packages/computer/src/observe.ts:112–112  ·  view source on GitHub ↗

* Wraps `run` in a span named `name`, seeded with `attributes`. The * callback receives a `WorkspaceSpan` it can use to attach further * attributes once the work has produced values worth recording (byte * counts, exit codes, applied / skipped counts). * * Implementations must run `ru

(
    name: string,
    attributes: WorkspaceAttributes,
    run: (span: WorkspaceSpan) => Promise<T>,
  )

Source from the content-addressed store, hash-verified

110 * caller. Errors thrown by `run` must propagate.
111 */
112 span<T>(
113 name: string,
114 attributes: WorkspaceAttributes,
115 run: (span: WorkspaceSpan) => Promise<T>,

Callers 3

withSpanFunction · 0.80
observe.test.tsFile · 0.80
cloudflare.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected