Make broken hack more obvious when it happens

This commit is contained in:
Eric Eastwood committed 2025-06-23 11:55:17 -05:00
1 parent 04084ae224
commit b849bed8f9
1 file changed
+1 -1
+1 -1
View File
@@ -96,7 +96,7 @@ def _set_prometheus_client_use_created_metrics(new_value: bool) -> None:
if hasattr(prometheus_client.metrics, "_use_created"):
prometheus_client.metrics._use_created = new_value
else:
logger.error(
raise Exception(
"Can't disable `_created` metrics in prometheus_client (brittle hack broken?)"
)