Belemetry's browser sampling can't keep errors while sampling the rest

Aperta
#15,573 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@msynk ci sta già lavorando.

Dal 1/12/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

In the browser, Belemetry can sample only by session: Browser.SessionSampleRatio (BelemetryBrowserOptions) keeps or drops a whole session. With any ratio below 1.0, the errors of a dropped session are dropped too.

A site that wants to keep telemetry small has two choices today, and neither works:

  • Lower the ratio: it loses errors, the records it most needs.
  • Leave it at 1.0: it sends every page view, web vital and successful call, while its server side keeps every error and samples the rest (for example with a processor that keeps errors and slow requests and samples about a tenth of everything else).

Two sites hit this independently this week: bit Fabric (bitfoundation/bitfabric#203) and bitplatform's websites (#15569). Both now send browser records unsampled.

Expected: browser sampling that can keep every error, failed call and slow operation, and sample the rest, the way the server-side samplers can. Ideally it uses the same decision per trace, so a kept request keeps its browser and server parts together. A per-record keep rule, or a sampler callback in the browser config, would do. The session ratio can stay for those who want whole sessions.

Version: Bit.Belemetry 11.0.0-pre-26.

Lingua principale
C#
Stelle
1.4k
Fork
264
Merge medio
5h 25m
PR unite (30g)
447

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 bitfoundation/bitplatform

Tutte le issue di bitfoundation/bitplatform

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.