@k-msg/analytics 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -74,6 +74,7 @@ await analytics.init();
74
74
 
75
75
  - `@k-msg/analytics` does not create its own database. It reads from the `kmsg_delivery_tracking` table written by `DeliveryTrackingService`.
76
76
  - For production usage, prefer a durable store (`SqliteDeliveryTrackingStore` or `BunSqlDeliveryTrackingStore`).
77
+ - Runtime diagnostics in analytics modules use `@k-msg/core` logger (no direct `console.*` in runtime paths).
77
78
 
78
79
  ## License
79
80
 
@@ -2,7 +2,7 @@
2
2
  * Event Collector
3
3
  * 실시간 이벤트 수집 및 메트릭 변환
4
4
  */
5
- import { EventEmitter } from "events";
5
+ import { EventEmitter } from "../shared/event-emitter";
6
6
  import type { MetricData } from "../types/analytics.types";
7
7
  export interface EventData {
8
8
  id: string;
@@ -2,7 +2,7 @@
2
2
  * Webhook Collector
3
3
  * 웹훅을 통한 외부 이벤트 수집
4
4
  */
5
- import { EventEmitter } from "events";
5
+ import { EventEmitter } from "../shared/event-emitter";
6
6
  import type { EventData } from "./event.collector";
7
7
  export interface WebhookData {
8
8
  id: string;