Skip to content

OpenTelemetryOptions

Namespace: Vercel.AI.OpenTelemetry

public sealed class OpenTelemetryOptions

Options of OpenTelemetry. Maps to OpenTelemetryOptions.

Inheritance: object

View source

public AgentSpanName? AgentSpanName { get; set; }

Controls the root agent span names for text generation. Null is ModelId.

Value: AgentSpanName

View source

public EnrichSpan? EnrichSpan { get; set; }

Adds custom attributes to spans when they are created.

Value: EnrichSpan

View source

public bool? ExperimentalDecision { get; set; }

Emit decision state, questions, and answers. Maps to experimental_decision.

Value: bool?

View source

[Obsolete("Use ExperimentalDecision instead.")]
public bool? ExperimentalEvaluation { get; set; }

Deprecated alias of ExperimentalDecision. Maps to experimental_evaluation.

Value: bool?

View source

public bool? ExperimentalExtraction { get; set; }

Emit extraction state, fields, reference date, and answers. Maps to experimental_extraction.

Value: bool?

View source

public bool? Headers { get; set; }

Emit request headers.

Value: bool?

View source

public bool? ProviderMetadata { get; set; }

Emit provider metadata on response spans.

Value: bool?

View source

public bool? RuntimeContext { get; set; }

Emit runtime context values.

Value: bool?

View source

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

View source

public bool? Usage { get; set; }

Emit AI SDK usage details that GenAI SemConv does not represent.

Value: bool?

View source

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