Open verdie-g opened 1 year ago
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Tagging subscribers to this area: @dotnet/area-extensions-logging See info in area-owners.md if you want to be subscribed.
Author: | verdie-g |
---|---|
Assignees: | - |
Labels: | `api-suggestion`, `untriaged`, `area-Extensions-Logging` |
Milestone: | - |
Background and motivation
Here is a log of my application using JsonConsoleFormatter:
In my log collector I would like to filter logs by
enduser.id
but its key depends on the request. Here it'sScopes.4.enduser.id
but it could also beScopes.3.enduser.id
. Also if for some reason, a middleware decides that the user is actually someone else and create a new scope I don't want to see twoenduser.id
in my scope but only the last one. For those reasons I would like my scopes merged like this:Here I can easily filter by
Scope.enduser.id
.API Proposal
API Usage
Alternative Designs
No response
Risks
No response