MCPcopy
hub / github.com/Peppermint-Lab/peppermint / tracking

Function tracking

apps/api/src/controllers/notebook.ts:7–17  ·  view source on GitHub ↗
(event: string, properties: any)

Source from the content-addressed store, hash-verified

5import { prisma } from "../prisma";
6
7async function tracking(event: string, properties: any) {
8 const client = track();
9
10 client.capture({
11 event: event,
12 properties: properties,
13 distinctId: "uuid",
14 });
15
16 client.shutdownAsync();
17}
18
19export function notebookRoutes(fastify: FastifyInstance) {
20 // Create a new entry

Callers 1

notebookRoutesFunction · 0.70

Calls 1

trackFunction · 0.90

Tested by

no test coverage detected