memory

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 NewStore

func NewStore(capacity int) *Store

NewStore creates an in-memory store with the given capacity.

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

func (s *Store) SessionDetail(sessionID string) ([]rum.RUMEvent, error)

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

func (s *Store) WriteBatch(events []rum.RUMEvent) error

WriteBatch appends multiple events.

func (*Store) WriteEvent

func (s *Store) WriteEvent(event rum.RUMEvent) error

WriteEvent appends a single event to the circular buffer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL