Documentation
¶
Index ¶
- type Store
- func (s *Store) ErrorGroups() ([]rum.ErrorGroup, error)
- func (s *Store) PageLoads() ([]rum.PagePerformance, error)
- func (s *Store) PagePerformance(route string) (*rum.PagePerformance, error)
- func (s *Store) PerformanceByRoute() ([]rum.RoutePerformance, error)
- func (s *Store) RageClicks(minutes int) ([]rum.ClickEvent, error)
- func (s *Store) SessionDetail(sessionID string) ([]rum.RUMEvent, error)
- func (s *Store) Sessions(limit int) ([]rum.SessionSummary, error)
- func (s *Store) UserJourneys(sessionID string) ([]rum.NavigationEvent, error)
- func (s *Store) WebVitalsOverview() (*rum.WebVitalsOverview, error)
- func (s *Store) WriteBatch(events []rum.RUMEvent) error
- func (s *Store) WriteEvent(event rum.RUMEvent) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is an in-memory circular-buffer RUM event store.
func (*Store) ErrorGroups ¶
func (s *Store) ErrorGroups() ([]rum.ErrorGroup, error)
ErrorGroups aggregates JS errors by fingerprint.
func (*Store) PageLoads ¶
func (s *Store) PageLoads() ([]rum.PagePerformance, error)
PageLoads returns per-route performance aggregations.
func (*Store) PagePerformance ¶
func (s *Store) PagePerformance(route string) (*rum.PagePerformance, error)
PagePerformance returns detailed metrics for a specific route.
func (*Store) PerformanceByRoute ¶
func (s *Store) PerformanceByRoute() ([]rum.RoutePerformance, error)
PerformanceByRoute returns aggregated performance metrics per route.
func (*Store) RageClicks ¶
func (s *Store) RageClicks(minutes int) ([]rum.ClickEvent, error)
RageClicks returns click events marked as rage clicks from the last N minutes.
func (*Store) SessionDetail ¶
SessionDetail returns all events for a given session.
func (*Store) Sessions ¶
func (s *Store) Sessions(limit int) ([]rum.SessionSummary, error)
Sessions returns recent session summaries.
func (*Store) UserJourneys ¶
func (s *Store) UserJourneys(sessionID string) ([]rum.NavigationEvent, error)
UserJourneys returns navigation events for a given session, ordered by time.
func (*Store) WebVitalsOverview ¶
func (s *Store) WebVitalsOverview() (*rum.WebVitalsOverview, error)
WebVitalsOverview computes web vitals aggregation on-the-fly.
func (*Store) WriteBatch ¶
WriteBatch appends multiple events.