Class InsightsService
java.lang.Object
com.vaadin.observability.micrometer.insights.InsightsService
Turns captured interactions into insights, and renders the payload served at
/actuator/vaadin/observability. Interactions are grouped so that N
users hitting the same problem produce ONE insight with N occurrences; each
insight type is a rule over the shared interaction buffer:
user-interaction-error: failed interactions, grouped by (route, component, event, exception);slow-user-interaction: successful interactions over theUX budget, grouped by (route, component, event);client-error: errors raised in a browser, grouped by (route, kind, source, frame), most occurrences first and capped atMAX_CLIENT_ERROR_INSIGHTSgroups. These come from the in-browser collector rather than the interaction buffer, and are the one insight kind that can describe a failure the server never saw — and the one whose grouping key is partly the browser's to choose, hence the cap.
evidence.applicationFrame (or the
component's event handler), verify the problem and propose a fix; a human can
follow replay to reproduce.-
Constructor Summary
ConstructorsConstructorDescriptionInsightsService(@Nullable RecentInteractions buffer) InsightsService(@Nullable RecentInteractions buffer, @Nullable RecentQueries queries) InsightsService(@Nullable RecentInteractions buffer, @Nullable RecentQueries queries, @Nullable RecentClientErrors clientErrors) -
Method Summary
-
Constructor Details
-
InsightsService
- Parameters:
buffer- the interactions recorded so far, ornullwhen the kit registered no instrumentation — the payload then says so explicitly instead of reporting an empty result
-
InsightsService
- Parameters:
buffer- retained interactions, ornullwhen the interaction collector was not registeredqueries- retained data provider queries, ornullwhen the query collector was not registered
-
InsightsService
public InsightsService(@Nullable RecentInteractions buffer, @Nullable RecentQueries queries, @Nullable RecentClientErrors clientErrors) - Parameters:
buffer- retained interactions, ornullwhen the interaction collector was not registeredqueries- retained data provider queries, ornullwhen the query collector was not registeredclientErrors- retained browser errors, ornullwhen the in-browser collector was not registered
-
-
Method Details
-
payload
-