@botmesh/core - v2.0.0-alpha.2
    Preparing search index...

    Interface BotSpan

    One span, as the core drives it.

    interface BotSpan {
        setAttribute(key: string, value: TraceAttributeValue | undefined): this;
        setAttributes(attrs: TraceAttributes): this;
        addEvent(name: string, attrs?: TraceAttributes): this;
        recordException(error: SpanException): this;
        setStatus(status: SpanStatus): this;
        end(endTimeMs?: number): void;
        isRecording(): boolean;
        spanContext(): SpanContextRef | undefined;
    }
    Index
    • Parameters

      • OptionalendTimeMs: number

      Returns void

    • false when sampled out: the core then skips computing optional attributes (id hashing).

      Returns boolean