Make logging-scope handling consistent across the logging integrations
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Attiva
- Stack tecnologico
- csharp
- Ambito
- backend-api-design
Direzione di ricerca
Read linked issues #5635, #5222, #3081, and #4882 to understand the behavior and decisions already in play. The issue asks for consistent scope handling across MEL, Serilog, structured logs, and documentation, but leaves the shared behavior undecided. Start by resolving the listed decisions with maintainers; done means the integrations and docs follow an agreed behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Each logging integration turns logging-scope state (ILogger.BeginScope in Microsoft.Extensions.Logging, LogContext in Serilog) into Sentry data in its own way. Structured logs don't use it at all yet, and the docs don't explain it.
| Area | Issue | Status |
|---|---|---|
| MEL and Serilog behave differently | #5635 | Different value handling, read at different times, different opt-outs, and different behaviour in global mode. |
BeginScope state on structured logs |
#5222 | Not implemented. The plan from 2026-10-20 is an opt-in IncludeScopes option on SentryLoggingOptions, off by default because ASP.NET Core opens a logging scope for every request. |
Docs for passing data with BeginScope |
#3081 | The MEL guide mentions BeginScope only under tag filters. Best written once the behaviour above settles. |
Decisions to make once, for every integration
- Which values to keep: MEL keeps only string values, while Serilog calls
ToString()on every property. - When to read them: MEL copies them into the Sentry scope when
BeginScopeis called, while Serilog readsLogContexteach time an event is captured. - How to opt out: MEL has the public
SentryOptions.SentryScopeStateProcessor, while Serilog's processor is internal. - Global mode (MAUI, desktop): MEL's
PushScopedoes nothing there, but the Serilog processor still runs. - Precedence: where logger-scope attributes sit relative to attributes on the Sentry scope (#4882).
- Lingua principale
- C#
- Stelle
- 775
- Fork
- 262
- Merge medio
- 1g 16h
- PR unite (30g)
- 118
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la 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-dotnet
-
chore: remove stale IL3050/IL3053 workaround from the iOS sampleForse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaState: Needs Discussion
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
getsentry/sentry-dotnet#6071 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Heap dumps: every SDK shutdown logs "Error waiting for GarbageCollectionMonitor task to complete"Forse già presa @pcbeingused33 l’ha presa oggi. ApertaState: Needs Discussion
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
getsentry/sentry-dotnet#6039 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
.NET Platform: Android Task
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
getsentry/sentry-dotnet#6020 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Move the Blazor WebAssembly sample off the deprecated DevServerForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta.NET Framework: Blazor
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
getsentry/sentry-dotnet#5906 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Docs MSBuild Needs Docs Update
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
getsentry/sentry-dotnet#5691 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di getsentry/sentry-dotnet
Issue simili
-
In-car displays show 0 km/h and P while the AV drivesForse già presa @bazilinskyy l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
bazilinskyy/coupled-sim#366 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
BaryoDev/umbraco-pwa#196 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
microsoft/fluentui-blazor#5688 ·
I maintainer di solito rispondono entro 1 giorno
-
bug flaky lsp-transport small
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno