createOtelExtension(Defined in: src/integrations/piCodingAgent.ts:654 Creates a pi coding agent extension that emits OTEL spans for the full agent lifecycle, conforming to the GenAI semantic conventions. Whenopts?): (pi) =>void
weave.init(...) has been called, spans are automatically exported
to the Weave trace server at /agents/otel/v1/traces. Otherwise, pass a
custom tracer in opts.
Parameters
opts?
OtelExtensionOptions = {}
Returns
(pi) => void