In-App Insights (Beta)
Logspot allows you to embed Logspot’s dashboard with custom widgets inside your web application using our web snippet.
The snippet configures & renders iframe with the customized dashboard.
Basic integration
You need to do two things to embed your dashboard:
1. Generate one time access token
Call Logspot api with your secret key (read more)
Response:
Generated access token is valid for 2 hours. We suggest generating a new token on each dashboard view.
2. Embed Logspot’s iframe
Embed the IFrame snippet anywhere in the <body>
element.
Advanced integration
Embed the web snippet anywhere in your HTML site e.g. in the <head>
or in the <body>
. The snippet queues the initial load, so our JS code can be fetched asynchronously.
After adding this snippet, Logspot will render the default widget set (the dashboard you can see when you visit app.logspot.io)
Filter the data set
Params:
filters
(optional) - filters that will be applied to all widgets in the dashboard (read more about filters). If you don’t pass any filtering, we will return all your data to the embedded dashboard.
Customize widgets
Supported widget types:
Custom labels in aggregation widget
Change primary color
Change IFrame height
By default, Logspot will automatically define the IFrame height.
You can override it by defining height
in the params;
Theme
By default, Logspot will detect user settings and will choose which theme it should use (light/dark).
You can also force specific theme:
Available options: "light"
and "dark"
.
Default widgets
This is the list of all widgets displayed by default. You can use it to display default widgets and your custom ones.