Interface: EndSpanOptions
Prefactor TypeScript SDK / @prefactor/core / EndSpanOptions
Interface: EndSpanOptions
Section titled “Interface: EndSpanOptions”Defined in: packages/core/src/tracing/tracer.ts:28
Options for ending a span
Properties
Section titled “Properties”outputs?
Section titled “outputs?”
optionaloutputs:Record<string,unknown>
Defined in: packages/core/src/tracing/tracer.ts:30
Output data from the operation
error?
Section titled “error?”
optionalerror:Error
Defined in: packages/core/src/tracing/tracer.ts:33
Error that occurred (if any)
tokenUsage?
Section titled “tokenUsage?”
optionaltokenUsage:TokenUsage
Defined in: packages/core/src/tracing/tracer.ts:36
Token usage information (for LLM calls)