Installation ID fallbacks use the MAC address and a machine-name hash
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
- 35/100
Direzione di ricerca
Start with src/Sentry/Internal/InstallationIdHelper.cs, especially the file storage and fallback logic linked in the issue. The report also points to the event and session fields that receive this ID, and to the proposed Installation Identifier section in the Data Collection spec. First resolve the open questions about replacement behavior, compatibility and timing; done means the fallback no longer derives IDs from device identifying values and its behavior is covered for storage failures.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When the SDK can't store its installation ID file, InstallationIdHelper falls back to two values that identify the machine:
- The MAC address of the first network interface that's up and isn't loopback, sent unhashed.
- A SHA-1 hash of
Environment.MachineName.
This happens with DisableFileWrite on, or when the SDK can't create the directory or read or write the file. The ID goes out as user.id on events and transactions when no user ID is set, and as the session did. In global mode it's on logs too.
getsentry/sentry-docs#20856 adds an "Installation Identifier" section to the Data Collection spec. It says SDKs must not base the installation identifier on values that identify the device outside the app, such as a MAC address or a host name, and that a plain hash of such a value still identifies the device. When the SDK can't store the identifier, it suggests keeping a random one in memory for the life of the process. sentry-java on Android and sentry-cocoa only use random IDs.
Open questions
- What should replace the two fallbacks? A random ID per process would count every restart as a new install for apps that can't write the file.
- Apps that hit these fallbacks today would get a new ID once. Does that need a changelog note?
- Should this wait until getsentry/sentry-docs#20856 merges?
- 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