dd-trace
    Preparing search index...

    Interface AnnotationContextOptions

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

    Declares the agent running in this context, read when the context is entered. The manifest is reported on every agent span in the context, nested ones included. Use annotate on a nested agent span to declare its own agent.

    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.