ObserveOptions
Options for BaseTracer.observe.
Properties
PropType
spanType?string | undefined
The span kind (e.g. "llm", "tool", "span"). Defaults to "span".
Type
string | undefinedspanName?string | undefined
Custom span name. Defaults to the wrapped function's name.
Type
string | undefinedrecordInput?boolean | undefined
Whether to record function inputs as a span attribute. Defaults to true.
Type
boolean | undefinedrecordOutput?boolean | undefined
Whether to record function outputs as a span attribute. Defaults to true.
Type
boolean | undefinedfork?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.
Type
boolean | undefined