Support setting span status from tracing span fields
Maintainer thường phản hồi trong vòng 2 ngày
Đá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
- 58/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ệ
- rust
- Lĩnh vực
- backend, observability
Hướng nghiên cứu
Start with sentry-tracing/src/lib.rs and sentry-tracing/src/layer/span.rs, then read how sentry.op is handled at span creation and when fields are recorded. Check the existing span status APIs and tests before choosing the sentry.status value convention. Done means the field updates the Sentry span status both at creation and when recorded later, with tests covering both paths.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Code that is instrumented only with the tracing crate can't set the status of the Sentry span created by sentry-tracing, unless it takes a direct dependency on sentry.
tracinghas no built-in span status concept. A span has only a name, a target, a level and fields.#[instrument(err)]emits an error event, but the span itself isn't marked.sentry-tracingtreats only three span fields specially:sentry.name,sentry.opandsentry.trace(sentry-tracing/src/lib.rs,sentry-tracing/src/layer/span.rs). Every other field becomes span data, and the layer never callsset_statuson the span.- The only workaround is to call
sentry::configure_scope(|s| s.get_span())while the tracing span is entered and then callset_status. This needs thesentrydependency, which defeats the point of instrumenting throughtracingalone. - Prior art:
tracing-opentelemetryreserves theotel.status_codeandotel.status_descriptionfields for this (docs).sentry-opentelemetryalready maps OTel span status onto Sentry spans.
Proposal (from the discussion): add a field convention, e.g. sentry.status, that maps onto the Sentry span status. Like sentry.op, it would be honored both when the span is created and when the field is recorded later.
Raised by Jan Michael Auer.
via @szokeasaurusrex.
--
- Ngôn ngữ chính
- Rust
- Star
- 754
- Fork
- 192
- Merge trung bình
- 2 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 21
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/sentry-rust
-
breaking change
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
getsentry/sentry-rust#1387 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
breaking change Rust
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/sentry-rust#1386 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
breaking change Rust Task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
getsentry/sentry-rust#1345 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Pin Rust toolchainĐang mởRust Task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
getsentry/sentry-rust#933 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Spans Task Traces
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
getsentry/sentry-rust#1401 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của getsentry/sentry-rust
Issue tương tự
-
binding:python bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
coollabsio/orbit#72 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
bug order-flow studies ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
userFRM/egui-charts#2417 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày