interface StartSpanOptions {
    attributes?: Attributes;
    context?: Context;
    endOnExit?: boolean;
    name: string;
}

Properties

attributes?: Attributes

Attributes to set on the span when it starts

context?: Context

Optional parent context to use for this span

endOnExit?: boolean

Whether to end the span when the function exits (default: true)

name: string

Name of the span