ObserveTracesOptions
Configuration for the observe.traces() middleware.
Properties
Section titled “Properties”
optionalotel?:boolean
Use OTel GenAI convention span names. Default: false (framework names).
output?
Section titled “output?”
optionaloutput?: (span) =>void
Custom span output for standalone mode (when @opentelemetry/api is not installed).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
recordContent?
Section titled “recordContent?”
optionalrecordContent?:boolean
Record prompt/response content in spans. Default: false.
tracer?
Section titled “tracer?”
optionaltracer?:Tracer
Custom OTel Tracer instance. Overrides global TracerProvider.