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

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

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

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

Từ ngày 1/12/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
C#
Star
1.4k
Fork
264
Merge trung bình
5 giờ 25 phút
Pull request đã merge (30 ngày)
447

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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

Tất cả issue của bitfoundation/bitplatform

Issue tương tự

Thêm issue về C#

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.