Support scopes with Amazon.Lambda.Logging.AspNetCore JSON logger
- Lingua principale
- C#
- Stelle
- 1.7k
- Fork
- 503
- Merge medio
- 1g 13h
- PR unite (30g)
- 19
Descrizione
### Describe the feature
It was briefly discussed in this PR:
https://github.com/aws/aws-lambda-dotnet/pull/2083#issuecomment-3046312828
Therefore, adding a separate feature request here.
Currently AspNetCore JSON logger does not support logging scopes. It would be really nice if it did.
It was also requested for non-AspNetCore scenarios:
https://github.com/aws/aws-lambda-dotnet/issues/1747#issuecomment-2450860295
### Use Case
Scopes are heavily used with Otel, so currently we lose tracing information.
Apart from that, we heavily use custom scopes, like tenantId, userId, etc.
### Acknowledgements
- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change
### AWS .NET SDK and/or Package version used
Amazon.Lambda.Logging.AspNetCore 4.1.0
### Targeted .NET Platform
.NET 8
### Operating System and version
AmazonLinux
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia individuando il logger JSON di Amazon.Lambda.Logging.AspNetCore e rivedendo la discussione in PR 2083 e issue 1747. Determina come sono rappresentati gli scope di logging e quali test esistenti li coprono, quindi definisci il completamento come la conservazione delle informazioni OpenTelemetry e degli scope personalizzati nei log JSON senza perdere il comportamento attuale del logger.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, csharp
- Ambito
- observability-sre
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100