• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nguyenhuuit / adventofcode-runner / #7

11 Jun 2025 12:51PM UTC coverage: 12.572% (+3.1%) from 9.492%
#7

push

nguyenhuuit
feat: integrate telemetry

26 of 167 branches covered (15.57%)

Branch coverage included in aggregate %.

15 of 95 new or added lines in 8 files covered. (15.79%)

5 existing lines in 4 files now uncovered.

61 of 525 relevant lines covered (11.62%)

0.24 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/hooks/useTelemetry.ts
1
import { useStore } from 'zustand';
2

3
import { TrackingEvent, analytics } from '@utils/analytics';
4

5
import { ExecutionStoreInstance } from '@hooks/useExecutionStore';
6

NEW
7
export const useTelemetry = (executionStore: ExecutionStoreInstance) => {
×
NEW
8
  const { year, day, part, language, inputMode } = useStore(executionStore);
×
9

NEW
10
  const track = (eventName: TrackingEvent, attributes?: Record<string, unknown>): void => {
×
NEW
11
    analytics.track(eventName, {
×
12
      ...attributes,
13
      year,
14
      day,
15
      part,
16
      language,
17
      inputMode,
18
    });
19
  };
20

NEW
21
  return { track };
×
22
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc