Log username in a Spring webapp

Hi.
We have a Spring Web application and when a Sentry event is logged, it contains no logged in username. Debugging shows that Sentry calls
org.apache.catalina.connector.RequestFacade.getUserPrincipal() and it returns null.

Is creating my own Spring RequestContextListener and manually calling SentryServletRequestListener.requestInitialized() a proper way?

We’re using sentry-1.6.4.

Введите сообщение