log2trace-ui - v1.0.0-rc.9
    Preparing search index...

    Class TraceVisualizerElement

    Custom element backing the <trace-visualizer> tag.

    Hierarchy

    • HTMLElement
      • TraceVisualizerElement
    Index

    Constructors

    Accessors

    • get view(): string

      The id of the view being shown. Setting it switches the view (and the view attribute follows).

      Returns string

    • set view(id: string): void

      Switch the active view by id (falling back to the default view when unknown) and synchronize the view attribute.

      Parameters

      • id: string

      Returns void

    Methods

    • Custom Element lifecycle hook invoked when an observed HTML attribute changes.

      Parameters

      • name: string
      • oldValue: string | null
      • newValue: string | null

      Returns void

    • Custom Element lifecycle hook invoked when <trace-visualizer> connects to a document.

      Returns void

    • Custom Element lifecycle hook invoked when <trace-visualizer> disconnects from a document.

      Returns void

    • Fetch a JSON file of OTel trace data and show it. Errors are shown in the view, not thrown.

      Parameters

      • url: string

      Returns Promise<void>

    • Read the theme tokens again and repaint: after the host changed a --l2t-* property from script.

      Returns void