Accept a client-supplied event id on /track so retries are deduplicated

Đang mở
#676 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@hassanabrar202 đang làm issue này rồi.

Từ ngày 23/11/2026.

  • #684 của @hassanabrar202 — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
analytics

Hướng nghiên cứu

Start by locating the /track ingestion path and how it currently applies the short-lived payload hash lock. Trace how events are stored and whether ingestion exposes an event identifier that can support deduplication. The work is done when a resend with the same optional client-supplied id is dropped while events without an id continue to be accepted; the issue names no files or tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The only deduplication on /track is a ~100 ms lock on a hash of the payload. A sender that hits a timeout or a 5xx cannot tell whether the event was stored, and a retry a few seconds later is stored as a second event. For server-side revenue events that doubles revenue.

Example: send {"type":"track","payload":{"name":"purchase","profileId":"u1","properties":{"__revenue":999}}} twice, 2 s apart → two events.

Request: an optional per-event id (like the insert ids other analytics APIs accept) that ingestion uses to drop a resend with the same id. Today we send each event at most once and accept losing it on a network error.

Ngôn ngữ chính
TypeScript
Star
7.3k
Fork
552
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
18

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Openpanel-dev/openpanel

Tất cả issue của Openpanel-dev/openpanel

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.