dbeaver/pro#6326 fixes (#3674)

This commit is contained in:
Ruslan Musaev
2025-08-20 10:38:55 +00:00
committed by GitHub
parent 8a4d88e721
commit 55c776f3e4
3 changed files with 3 additions and 2 deletions
@@ -37,6 +37,7 @@ public interface ApiCallInterceptor {
@NotNull HttpServletRequest request,
@Nullable Map<String, Object> variables,
@NotNull String apiCall,
@Nullable String userId,
@NotNull LocalDateTime startTime,
@Nullable String errorMessage,
@NotNull String apiProtocol
@@ -271,7 +271,7 @@ public class GraphQLEndpoint extends HttpServlet {
errorMessage = executionException.getMessage();
}
if (WebAppUtils.getWebApplication() instanceof ApiCallInterceptor apiCallInterceptor) {
apiCallInterceptor.onApiCallEvent(request, variables, operationName, startTime, errorMessage, API_PROTOCOL);
apiCallInterceptor.onApiCallEvent(request, variables, operationName, userId, startTime, errorMessage, API_PROTOCOL);
}
}
@@ -75,7 +75,7 @@ public abstract class WebServiceServletBase extends HttpServlet {
} finally {
if (WebAppUtils.getWebApplication() instanceof ApiCallInterceptor apiCallInterceptor) {
apiCallInterceptor.onApiCallEvent(
request, getVariables(request), request.getRequestURI(), startTime, errorMessage, API_PROTOCOL
request, getVariables(request), request.getRequestURI(), null, startTime, errorMessage, API_PROTOCOL
);
}
}