Skip to content

EnrichSpanContext

Namespace: Vercel.AI.OpenTelemetry

public sealed class EnrichSpanContext

The call an EnrichSpan callback is asked about. Maps to the callback options in EnrichSpan.

Inheritance: object

View source

public string CallId { get; init; }

The call id.

Value: string

View source

public string OperationId { get; init; }

The operation id, such as ai.generateText.

Value: string

View source

public IReadOnlyDictionary<string, object?>? RuntimeContext { get; init; }

The runtime context of the call, or null.

Value: IReadOnlyDictionary<string, object>

View source

public OpenTelemetrySpanType SpanType { get; init; }

The kind of span being created.

Value: OpenTelemetrySpanType

View source

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