MCPcopy
hub / github.com/uselotus/lotus / posthogTrack

Function posthogTrack

go/event-guidance/main.go:300–308  ·  view source on GitHub ↗
(phClient posthog.Client, organizationID int64, numEvents int)

Source from the content-addressed store, hash-verified

298}
299
300func posthogTrack(phClient posthog.Client, organizationID int64, numEvents int) {
301 // send posthog event
302 phClient.Enqueue(posthog.Capture{
303 DistinctId: fmt.Sprintf("%d (API Key)", organizationID),
304 Event: "track_event",
305 Properties: posthog.NewProperties().
306 Set("num_events", numEvents),
307 })
308}

Callers 1

mainFunction · 0.85

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected