Skip to content

EnrichSpan

Namespace: Vercel.AI.OpenTelemetry

public delegate IReadOnlyDictionary<string, object?>? EnrichSpan(EnrichSpanContext context)

Adds custom attributes to a span when it is created. Return null to add none. An exception is ignored. Maps to EnrichSpan.

Parameters

Name Type Description
context EnrichSpanContext

Returns: IReadOnlyDictionary<string, object>

View source

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