MCPcopy Create free account
hub / github.com/PostHog/duckgres / Capture

Method Capture

internal/analytics/analytics.go:36–36  ·  view source on GitHub ↗

Capture records an event. orgID attributes the event to an org via group analytics; an empty orgID falls back to a non-org distinct_id and omits the group (e.g. standalone single-tenant mode). props may be nil.

(event, orgID string, props map[string]any)

Source from the content-addressed store, hash-verified

34 // analytics; an empty orgID falls back to a non-org distinct_id and omits
35 // the group (e.g. standalone single-tenant mode). props may be nil.
36 Capture(event, orgID string, props map[string]any)
37 // Close flushes any buffered events. Safe to call multiple times.
38 Close()
39}

Callers 9

provisionWarehouseMethod · 0.65
deprovisionWarehouseMethod · 0.65
resetPasswordMethod · 0.65
captureProvisionFailedFunction · 0.65
reconcileProvisioningMethod · 0.65
reconcileDeletingMethod · 0.65
logQueryStartedMethod · 0.65
logQueryErrorMethod · 0.65

Implementers 5

fakeTrackercontrolplane/provisioning/analytics_ev
fakeTrackercontrolplane/provisioner/controller_an
noopTrackerinternal/analytics/analytics.go
posthogTrackerinternal/analytics/analytics.go
fakeQueryTrackerserver/conn_analytics_test.go

Calls

no outgoing calls

Tested by 1