dd-trace
    Preparing search index...

    Interface AnnotationContextOptions

    interface AnnotationContextOptions {
        costTags?: string[];
        name?: string;
        prompt?: Prompt;
        tags?: { [key: string]: any };
    }
    Index

    Properties

    costTags?: string[]

    List of tag keys to propagate to LLM Observability cost and token metrics emitted from each span in the context. Each key must already be present in tags on the span when it starts.

    name?: string

    Set to override the span name for any spans annotated within the returned context.

    prompt?: Prompt

    A Prompt object that represents the prompt used for an LLM call. Only used on llm spans.

    tags?: { [key: string]: any }

    Dictionary of JSON serializable key-value tag pairs to set or update on the LLMObs span regarding the span's context.