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

オープン
#676 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@hassanabrar202 がすでに取り組んでいます。

2026年11月23日 から。

  • #684 @hassanabrar202 による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
analytics

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
7.3k
フォーク
552
平均マージ
1日 2時間
マージ済み PR(30日)
18

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Openpanel-dev/openpanel のほかの issue

Openpanel-dev/openpanel の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。