Compress envelopes with Zstandard on .NET 11
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
- 30/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Attiva
- Stack tecnologico
- csharp
- Ambito
- backend, performance
Direzione di ricerca
Start with GzipRequestBodyHandler, GzipBufferedRequestBodyHandler, DefaultSentryHttpClientFactory, and the RequestBodyCompressionLevel option; inspect how options are bound through BindableSentryOptions. Then review the .NET 11 compression APIs and the issue’s open questions about opt-in selection, older target frameworks, and mobile performance. Done means choosing and implementing the option and target framework behavior, with measurements informing any default.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
On net11.0, envelopes could be compressed with Zstandard instead of gzip. Smaller envelopes matter most on Android and iOS, which also target net11.0 on version7.
Current state
We compress request bodies by hand with GZipStream, in GzipRequestBodyHandler and GzipBufferedRequestBodyHandler. DefaultSentryHttpClientFactory picks one when RequestBodyCompressionLevel isn't NoCompression.
What .NET 11 adds
System.Net.Http now has GZipCompressedContent, BrotliCompressedContent and ZstandardCompressedContent. They set Content-Encoding and compress the content as the request is written. ZstandardStream and ZstandardEncoder live in System.IO.Compression. All five are in the 11.0.0 GA reference pack.
See What's new in the .NET 11 libraries.
Server support
Relay has accepted Content-Encoding: zstd since getsentry/relay#4089. However, Relay rejects encodings it doesn't recognise, so a self-hosted Sentry running an older Relay would drop zstd envelopes. Zstd should therefore be opt-in, not the new default.
Open questions
- How should users choose the algorithm? One option is a new option next to
RequestBodyCompressionLevel, which also needs a matchingBindableSentryOptionsproperty. - Should the
net11.0gzip path also move toGZipCompressedContent? The existing handlers have to stay for older TFMs either way, so this adds a#if NET11_0_OR_GREATERpath rather than removing code. - How much smaller are typical envelopes with zstd than with gzip, and what does it cost in CPU on mobile? Measure before choosing defaults.
- 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