Skip to content

Conversation

@cfkoehler
Copy link
Collaborator

No description provided.


Namespace.bind("MetricsManager", manager);
try (Response response = health.clusterAgents()) {
try (Response response = health.generateJsonResponse(results)) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the intent of the test. Need to revert and correct the test

}
} catch (Exception e) {
logger.warn("Could not retrieve metrics", e);
return Response.serverError().entity("Could not retrieve metrics: " + e.getMessage()).build();

Check warning

Code scanning / CodeQL

Information exposure through an error message Medium

Error information
can be exposed to an external user.
@cfkoehler cfkoehler force-pushed the prometheus-dropwizard branch from cf4ceff to 68009c2 Compare October 13, 2025 20:02
@memny
Copy link
Collaborator

memny commented Oct 29, 2025

I like this more than #1201 but it's more invasive. Can we keep this around for a bit to use as a reference? This could help if circle back and look into custom metrics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants