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

Aperta
#676 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@hassanabrar202 ci sta già lavorando.

Dal 23/11/2026.

  • #684 di @hassanabrar202 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
analytics

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
7.3k
Fork
552
Merge medio
1g 2h
PR unite (30g)
18

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Openpanel-dev/openpanel

Tutte le issue di Openpanel-dev/openpanel

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.