Skip to content

Commit

Permalink
Merge pull request #33551 from geoand/#33547
Browse files Browse the repository at this point in the history
Properly include Prometheus related code
  • Loading branch information
geoand authored May 23, 2023
2 parents 5ad2f1c + a42d2de commit 60a73e1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ public static class PrometheusEnabled implements BooleanSupplier {
MicrometerConfig mConfig;

public boolean getAsBoolean() {
return REGISTRY_CLASS != null && mConfig.checkRegistryEnabledWithDefault(mConfig.export.prometheus);
return (REGISTRY_CLASS != null) && QuarkusClassLoader.isClassPresentAtRuntime(REGISTRY_CLASS_NAME)
&& mConfig.checkRegistryEnabledWithDefault(mConfig.export.prometheus);
}
}

Expand Down

0 comments on commit 60a73e1

Please sign in to comment.