MCPcopy Create free account
hub / github.com/anomalyco/opencode / routeEvent

Function routeEvent

packages/stats/server/src/ingest.ts:145–153  ·  view source on GitHub ↗
(event: IngestEvent)

Source from the content-addressed store, hash-verified

143}
144
145function routeEvent(event: IngestEvent): LakeRoute | undefined {
146 if (typeof event._datalake_key !== "string") return
147 const match = event._datalake_key.match(LAKE_TYPE)
148 if (!match?.[1] || !match[2]) return
149 return {
150 database: match[1],
151 table: match[2],
152 }
153}
154
155function toFirehoseRecord(event: IngestEvent, route: LakeRoute): FirehoseRecord {
156 return {

Callers 2

IngestClass · 0.85
countRoutedEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected