Observability Server
Types
Types
ObsCollections
type ObsCollections = { errors: RxCollection<ErrorEvent>; logs: RxCollection<LogEvent>; sessions: RxCollection<Session>; }
ObsDatabase
type ObsDatabase = import("/Users/sthornock/code/epic/epic-flowstate/node_modules/rxdb/dist/types/rx-database").RxDatabaseBase<any, any, ObsCollections, any> & ObsCollections & import("/Users/sthornock/code/epic/epic-flowstate/node_modules/rxdb/dist/types/index").RxDatabaseGenerated<ObsCollections, any>
ErrorEvent
type ErrorEvent = { id: string; projectId: string; timestamp: number; level: "error" | "fatal"; message: string; stackTrace: string[]; environment: { platform: "browser" | "node" | "react-native" | "electron"; userAgent?: string | undefined; os?: string | undefined; appVersion?: string | undefined; }; metadata: Record<string, any>; sourceMap?: { file: string; line: number; column: number; } | undefined; sessionId?: string | undefined; }
LogEvent
type LogEvent = { id: string; projectId: string; timestamp: number; level: "error" | "debug" | "info" | "warn"; message: string; sessionId?: string | undefined; context?: Record<string, any> | undefined; }
Session
type Session = { id: string; projectId: string; metadata: Record<string, any>; startTime: number; lastActivity: number; breadcrumbs: { timestamp: number; type: "navigation" | "click" | "network" | "console"; data?: any; }[]; userId?: string | undefined; }