Judgment Labs Logo
Sdk referenceTypescript

ObserveOptions

Options for BaseTracer.observe.

Options for BaseTracer.observe.

Properties

spanType

:

string | undefined

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

spanName

:

string | undefined

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

recordInput

:

boolean | undefined

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

recordOutput

:

boolean | undefined

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

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.

Last updated on

On this page