OpenTelemetryOptions
Namespace: Vercel.AI.OpenTelemetry
public sealed class OpenTelemetryOptionsOptions of OpenTelemetry. Maps to OpenTelemetryOptions.
Inheritance: object
Properties
Section titled “Properties”AgentSpanName
Section titled “AgentSpanName”public AgentSpanName? AgentSpanName { get; set; }Controls the root agent span names for text generation. Null is ModelId.
Value: AgentSpanName
EnrichSpan
Section titled “EnrichSpan”public EnrichSpan? EnrichSpan { get; set; }Adds custom attributes to spans when they are created.
Value: EnrichSpan
ExperimentalDecision
Section titled “ExperimentalDecision”public bool? ExperimentalDecision { get; set; }Emit decision state, questions, and answers. Maps to experimental_decision.
Value: bool?
ExperimentalEvaluation
Section titled “ExperimentalEvaluation”[Obsolete("Use ExperimentalDecision instead.")]public bool? ExperimentalEvaluation { get; set; }Deprecated alias of ExperimentalDecision. Maps to experimental_evaluation.
Value: bool?
ExperimentalExtraction
Section titled “ExperimentalExtraction”public bool? ExperimentalExtraction { get; set; }Emit extraction state, fields, reference date, and answers. Maps to experimental_extraction.
Value: bool?
Headers
Section titled “Headers”public bool? Headers { get; set; }Emit request headers.
Value: bool?
ProviderMetadata
Section titled “ProviderMetadata”public bool? ProviderMetadata { get; set; }Emit provider metadata on response spans.
Value: bool?
RuntimeContext
Section titled “RuntimeContext”public bool? RuntimeContext { get; set; }Emit runtime context values.
Value: bool?
Tracer
Section titled “Tracer”public ActivitySource? Tracer { get; set; }The source that creates the spans. Maps to tracer. The default is a source named gen_ai.
Add that name to your TracerProvider.
Value: ActivitySource
public bool? Usage { get; set; }Emit AI SDK usage details that GenAI SemConv does not represent.
Value: bool?
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product