Support setting span status from tracing span fields
I maintainer di solito rispondono entro 2 giorni
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 58/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- backend, observability
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
--
- Lingua principale
- Rust
- Stelle
- 754
- Fork
- 192
- Merge medio
- 2g 20h
- PR unite (30g)
- 21
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getsentry/sentry-rust
-
breaking change
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
getsentry/sentry-rust#1387 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
breaking change Rust
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
getsentry/sentry-rust#1386 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
breaking change Rust Task
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
getsentry/sentry-rust#1345 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Pin Rust toolchainApertaRust Task
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
getsentry/sentry-rust#933 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Spans Task Traces
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
getsentry/sentry-rust#1401 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di getsentry/sentry-rust
Issue simili
-
multiple issues priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
storytold/pdfcraft#6469 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
parity priority: low ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
storytold/photocraft#11680 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
triage/needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
praxis-proxy/grid#564 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
ScoopInstaller/Extras#19275 ·
I maintainer di solito rispondono entro 1 giorno