MCPcopy
hub / github.com/getmaxun/maxun / capture

Function capture

server/src/utils/analytics.ts:36–47  ·  view source on GitHub ↗
(event: any, data = {})

Source from the content-addressed store, hash-verified

34}
35
36export function capture(event: any, data = {}) {
37 if (process.env.MAXUN_TELEMETRY !== 'true') return;
38
39 const distinctId = ANALYTICS_ID || DEFAULT_DISTINCT_ID;
40 const payload = { ...data, ...analyticsMetadata() };
41
42 posthogClient.capture({
43 distinctId,
44 event,
45 properties: payload,
46 });
47}

Callers 9

processRunExecutionFunction · 0.90
processRunExecutionFunction · 0.90
server.tsFile · 0.90
storage.tsFile · 0.90
auth.tsFile · 0.90
executeRunFunction · 0.90
WorkflowGeneratorClass · 0.90
sdk.tsFile · 0.90
executeRunFunction · 0.90

Calls 1

analyticsMetadataFunction · 0.85

Tested by

no test coverage detected