Skip to content

trulens.dashboard.components.record_viewer_otel

trulens.dashboard.components.record_viewer_otel

Functions

record_viewer_otel

record_viewer_otel(
    spans: List[OtelSpan], key: Optional[str] = None
) -> None

Create a new instance of "record_viewer_otel", which produces a record viewer for the OTEL spans.

PARAMETER DESCRIPTION
spans

List of spans to be displayed in the timeline. It is the caller's responsibility to select the spans to be displayed. The simplest way to get the spans is to get the rows from the ORM.Events table, then call to_dict(orient="records") on the rows.

TYPE: List[OtelSpan]