Skip to content
Judgment Labs
Esc
navigateopen⌘Jpreview
On this page

ObserveOptions

Options for BaseTracer.observe.

Properties

PropType
spanType?string | undefined

The span kind (e.g. "llm", "tool", "span"). Defaults to "span".

Typestring | undefined
spanName?string | undefined

Custom span name. Defaults to the wrapped function's name.

Typestring | undefined
recordInput?boolean | undefined

Whether to record function inputs as a span attribute. Defaults to true.

Typeboolean | undefined
recordOutput?boolean | undefined

Whether to record function outputs as a span attribute. Defaults to true.

Typeboolean | undefined
fork?boolean | undefined

If true, run the function in a fresh linked trace instead of as a child of the current trace, when an active parent span exists. Defaults to false.

Typeboolean | undefined

Was this page helpful?