TelemetryOptions
Namespace: Vercel.AI
public sealed class TelemetryOptionsTelemetry configuration. Maps to TelemetryOptions in telemetry/telemetry-options.ts.
Inheritance: object
Properties
Section titled “Properties”FunctionId
Section titled “FunctionId”public string? FunctionId { get; set; }Identifier for this function. Used to group telemetry data by function. Maps to functionId.
Value: string
IncludeRuntimeContext
Section titled “IncludeRuntimeContext”public IReadOnlyDictionary<string, bool>? IncludeRuntimeContext { get; set; }Top-level runtime context properties that should be included in telemetry. Runtime context properties are excluded
unless they are explicitly set to true. Maps to includeRuntimeContext.
Value: IReadOnlyDictionary<string, bool>
IncludeToolsContext
Section titled “IncludeToolsContext”public IReadOnlyDictionary<string, IReadOnlyDictionary<string, bool>>? IncludeToolsContext { get; set; }Top-level tool context properties that should be included in telemetry, configured per tool name. Tool context properties
are excluded unless they are explicitly set to true. Maps to includeToolsContext.
Value: IReadOnlyDictionary<string, IReadOnlyDictionary<string, bool>>
Integrations
Section titled “Integrations”public IReadOnlyList<ITelemetry>? Integrations { get; set; }Per-call telemetry integrations that receive lifecycle events during generation. When provided, they take precedence over
the globally registered integrations for this call. Maps to integrations.
Value: IReadOnlyList<ITelemetry>
IsEnabled
Section titled “IsEnabled”public bool? IsEnabled { get; set; }Enable or disable telemetry. Enabled by default when a telemetry integration is registered. Set to
false to opt out. Maps to isEnabled.
Value: bool?
RecordInputs
Section titled “RecordInputs”public bool? RecordInputs { get; set; }Enable or disable input recording. Enabled by default. Maps to recordInputs.
Value: bool?
RecordOutputs
Section titled “RecordOutputs”public bool? RecordOutputs { get; set; }Enable or disable output recording. Enabled by default. Maps to recordOutputs.
Value: bool?
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product