@grand-board/otel-cloudflare - v6.11.0
    Preparing search index...

    Class CallerInfo

    Information about the caller location

    Index

    Constructors

    • Parameters

      • opts: {
            column?: number;
            file?: string;
            function?: string;
            line?: number;
            parent?: CallerInfo;
        } = {}

      Returns CallerInfo

    Properties

    column?: number
    file?: string
    line?: number
    parent?: CallerInfo

    Accessors

    • get function(): string

      Get the function name, looking up parent chain if anonymous

      Returns string

    Methods

    • Check if caller info is empty

      Returns boolean

    • Returns OpenTelemetry semantic convention attributes for code location.

      Returns Record<string, string | number>

    • Convert to plain object (excludes parent to avoid circular refs)

      Returns { column?: number; file?: string; function?: string; line?: number }

    • Format as string for display

      Returns string