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

    Module log2trace-ui

    log2trace-ui — embeddable trace visualization Web Component.

    Importing this module registers four custom elements as a side effect: <trace-visualizer> (the trace view), <trace-view> (declarative view tabs and per-view options), <trace-filter> (declarative filter inputs), and <span-kind-rule> (declarative span-kind classification rules). After import the component can be used directly from HTML, or driven programmatically via the exports below, which include everything the headless log2trace-ui/core entry offers.

    <script type="module" src="./log2trace.js"></script>
    <trace-visualizer data-url="./trace.json"></trace-visualizer>
    import 'log2trace-ui';
    import { transformLogs } from 'log2trace-ui';

    const el = document.querySelector('trace-visualizer');
    el.traceData = transformLogs(myLogs, {
    traceIdField: 'text.BTMID',
    spanNameField: 'text.Action',
    serviceNameField: 'text.MachineName',
    timestampField: 'text.Timestamp',
    });

    Enumerations

    Slice
    SpanKind

    Classes

    SpanMask
    TraceVisualizerElement

    Interfaces

    AnyValue
    ArrayValue
    ChangeSet
    EntityRef
    Event
    Filter
    FilterFieldConfig
    FilterOption
    IndexedSpan
    InfoGroup
    InfoModel
    InfoSection
    InstrumentationScope
    KeyValue
    KeyValueList
    LogDataInput
    MatchSummary
    MutationOptions
    Resource
    ResourceSpans
    ScopeSpans
    Selector
    SelectSpanOptions
    Span
    SpanIndex
    SpanKindRule
    SpanSet
    SpanTable
    Status
    Target
    TargetOptions
    TimeWindow
    TraceData
    TraceState
    TraceStore
    TraceStoreOptions
    TraceView
    TraceVisualizerConfig
    TransformConfig
    ViewCommand
    ViewContext
    ViewDefinition
    ViewHit
    ViewOptions

    Type Aliases

    DataPhase
    FetchCallback
    FieldValue
    FilterFieldType
    FilterSource
    FilterTarget
    FilterValue
    FlushScheduler
    InfoLevel
    InfoRow
    InfoStatus
    LogEntry
    OptionsSource
    Origin
    SpanId
    SpanMatcher

    Variables

    API_ORIGIN
    EMPTY_SPAN_SET
    hoveredSpan
    matchSummary
    MIXED_ORIGIN
    selectedSpan

    Functions

    areRequiredExternalFiltersFilled
    buildQueryParams
    buildSpanIndex
    choiceOption
    compileFilters
    createTraceStore
    defineSelector
    describeSpan
    extractAnyValue
    filterSpanIds
    flagOption
    formatAbsoluteTime
    formatDuration
    formatOffset
    getField
    getView
    listViews
    matchSpans
    normalizeOptions
    numberOption
    registerView
    spanKindName
    spanSetOf
    touches
    transformLogs