TimelessTracesDashboard.HistoricalSource behaviour (timeless_traces_dashboard v0.3.17)

Copy Markdown View Source

Configurable owner boundary for dashboard reads and live-tail subscription.

The local source preserves the embedded-library behavior. The data-plane source delegates all available reads to one configured Rust HTTP client and rejects live tail explicitly; it never falls back to TimelessTraces.

Summary

Callbacks

query(keyword, keyword)

@callback query(keyword(), keyword()) ::
  {:ok, TimelessTraces.Result.t()} | {:error, term()}

stats(keyword)

@callback stats(keyword()) :: {:ok, map()} | {:error, term()}

subscribe(keyword)

@callback subscribe(keyword()) :: :ok | {:error, term()}

trace(t, keyword)

@callback trace(
  String.t(),
  keyword()
) :: {:ok, [TimelessTraces.Span.t()]} | {:error, term()}

unsubscribe(keyword)

@callback unsubscribe(keyword()) :: :ok | {:error, term()}

Functions

query(filters)

stats()

subscribe()

trace(trace_id)

unsubscribe()