Function: startAgentOSSpan()
startAgentOSSpan(
name,options?):Span|null
Defined in: packages/agentos/src/safety/evaluation/observability/otel.ts:489
Starts an AgentOS span. Only string, number and boolean attributes, and arrays of them, are kept.
Parameters
name
string
The span's name.
options?
The span's kind and attributes.
attributes?
Attributes
kind?
SpanKind
Returns
Span | null
The started span, or null while tracing is off or content-safe telemetry is on.