Skip to content

Commit

Permalink
add analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Jan 21, 2025
1 parent 18e08b9 commit 4c2acc7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Binary file modified pipes/obsidian/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion pipes/obsidian/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@radix-ui/react-toast": "^1.2.4",
"@radix-ui/react-tooltip": "^1.1.5",
"@screenpipe/browser": "0.1.21",
"@screenpipe/js": "1.0.0",
"@screenpipe/js": "1.0.6",
"@shadcn/ui": "^0.0.4",
"@tanstack/react-query": "^5.62.7",
"@types/js-levenshtein": "^1.1.3",
Expand Down
6 changes: 6 additions & 0 deletions pipes/obsidian/src/app/api/log/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ export async function GET() {
);
const _ = await syncLogToObsidian(logEntry, obsidianPath);

await pipe.captureEvent("obsidian_work_log_synced", {
model,
interval,
pageSize,
});

return NextResponse.json({
message: "work log synced successfully",
logEntry,
Expand Down

0 comments on commit 4c2acc7

Please sign in to comment.