bot.tracing), also used by plugins (@botmesh/ai). Without
BotConfig.telemetry it is a no-op (enabled === false).
Properties
enabled
Methods
startSpan()
Parameters
Returns
BotSpan
activeSpan()
Returns
BotSpan | undefined
withSpan()
fn with span active (core context and the backend’s). Returns fn’s value unchanged.
Type Parameters
Parameters
Returns
T
trace()
fn inside it and end it when fn returns or its promise settles
(a throw/rejection sets status error and records the sanitized exception). Returns
fn’s own value or promise — never a derived one.
Type Parameters
Parameters
Returns
T
recordError()
span (status error, error.type, exception event).
Parameters
Returns
void
idAttribute()
ids policy to an id (undefined under 'omit'). For plugins that tag their own spans.
Parameters
Returns
string | undefined