-
Notifications
You must be signed in to change notification settings - Fork 298
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
Currently we emit various metrics and have the option of tagging them with the realm-id, when polaris.metrics.realm-id-tag.enable-in-api-metrics=true
.
In some cases it would be useful to also annotate the metrics with a user-principal tag, such that specific issues can be better traced at a user level.
Describe the solution you'd like
We could add a polaris.metrics.user-principal-tag.enable-in-api-metrics=true
.
The user principal is already present in the SecurityContext, which can be easily annotated with a MeterTag
in the api template.
Describe alternatives you've considered
We could log the catalog name but this is more complicated and would require a more intrusive change.
Additional context
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request