Skip to main content

BOUNDARY_SPANS

@forge/monorepo


@forge/monorepo / backend/src / BOUNDARY_SPANS

Variable: BOUNDARY_SPANS

const BOUNDARY_SPANS: object

Defined in: backend/src/telemetry/spans.ts:69

The spans that are not run events.

The request and the claim have no event type — a run event exists once there is a run, and these happen before or around that. Listed here so the full set of span names has one home; a name invented at a call site is a name nothing can check.

Type Declaration

admission

readonly admission: "run.admit" = "run.admit"

Quota and authorization, before anything is claimed or enqueued.

approvalWait

readonly approvalWait: "hitl.approval" = "hitl.approval"

Waiting for a human. Often the longest span in a trace, and the one an operator most wants to see.

claim

readonly claim: "run.claim" = "run.claim"

The consumer side. Where the traceparent is read back and the trace continues.

enqueue

readonly enqueue: "run.enqueue" = "run.enqueue"

The producer side of the queue. Where the traceparent is written into the job.

model

readonly model: "model.call" = "model.call"

One model call.

request

readonly request: "http.request" = "http.request"

The inbound GraphQL operation. server kind — the root of the trace.

tool

readonly tool: "tool.call" = "tool.call"

One tool call.