Skip to main content

SPAN_FOR_RUN_EVENT

@forge/monorepo


@forge/monorepo / backend/src / SPAN_FOR_RUN_EVENT

Variable: SPAN_FOR_RUN_EVENT

const SPAN_FOR_RUN_EVENT: Readonly<Record<RunEventType, string>>

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

Every run event's span name.

Several events map to the same span deliberately — part.added and part.updated are both activity within a run, not boundaries worth their own span, and a span per streamed part would produce thousands per run and bury the ones that matter. They still get a span name rather than being excluded, because "this event has no span" is a decision that must be visible, and an omission looks identical to an oversight.