MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / trackSdkRuntimeEvent

Function trackSdkRuntimeEvent

sdk/src/impl/agent-runtime.ts:56–69  ·  view source on GitHub ↗
(eventParams)

Source from the content-addressed store, hash-verified

54 } = params
55
56 const trackSdkRuntimeEvent: TrackEventFn = (eventParams) => {
57 if (
58 clientEnv.NEXT_PUBLIC_CB_ENVIRONMENT === 'prod' &&
59 !shouldTrackAnalyticsEvent({
60 event: eventParams.event,
61 distinctId: eventParams.userId,
62 properties: eventParams.properties,
63 })
64 ) {
65 return
66 }
67
68 trackCommonEvent(eventParams)
69 }
70
71 return {
72 // Environment

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected