Editorial question64.9K views4,674 votes0 answers4,583 following
AI-generatedIllegalArgumentException: metric name cannot contain whitespace when registering custom metrics
MetricRegistry Name Validation When adding a custom metric to Dropwizard’s MetricRegistry , the framework throws IllegalArgumentException: metric name cannot contain whitespace if the supplied name includes spaces. This exception is documented in the MetricRegistry Javadoc and is also the root cause of 400 responses from the /metrics endpoint when malformed