Skip to main content
Defined in: telemetry/types.ts:121 The ONLY thing a tracing integration implements. Minimal on purpose, so it can be backed by OpenTelemetry (@botmesh/otel), Datadog, Sentry or a test recorder.

Methods

startSpan()

Defined in: telemetry/types.ts:122

Parameters

Returns

BotSpan

withSpan()?

Defined in: telemetry/types.ts:128 Optional: run fn with span active in the backend’s own context too, so the backend’s auto-instrumentations (http, pg, undici…) nest under bot spans. Must call fn synchronously and return its result unchanged.

Type Parameters

Parameters

Returns

T