Insights Logs

Browse logs of messages that passed through flows.

Insights Logs

Configuration

Set up a new instance with config parameters and set/get methods:

config.el ...

Learn about widget config here.

config.flowId

ID of a flow to filter the logs by.

config.options.showHistogram

Hides the histogram section of the UI when set to false.

Instance

Learn about widget instance here.

State

loader

Type: Boolean | Default: null

Toggle a custom loading state.

error

Type: String | Default: null

Toggle a custom error message. filterLayout

Type: String | Default: 'expanded'

Controls whether the left filter panel is shown. Options: 'collapsed' or 'expanded'. Example: Set the initial state and toggle it programmatically at runtime.

query

Type: Object | Default: {}

The current query of the widget. Changing it reloads both the histogram data and the logs table. Example: Retrieving the current query from the widget's state.

Basic Usage

Set an initial query in the widget's state:

Reading and Updating the Query with Nested Filters

When modifying the query, always merge it with the current query object.

Tracking Query Changes

Listen for changes triggered by UI interactions:

Working with Nested Query Keys

You can directly read or set nested query properties using a /-separated path.

Example

Last updated

Was this helpful?