Skip to content

ITelemetry

Namespace: Vercel.AI

public interface ITelemetry

Implement this interface to create custom telemetry integrations. A callback is optional: return null from a property to skip it. Maps to Telemetry in telemetry/telemetry.ts. Only onStart, onObjectStepStart, onObjectStepEnd and the text generation callbacks ( onStepStart, onLanguageModelCallStart, onLanguageModelCallEnd, onToolExecutionStart, onToolExecutionEnd, onStepEnd, onStepFinish, onEnd, onAbort and onError) and the extract and decide callbacks are ported so far.

Derived: OpenTelemetry

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product