added `spring_metrics` path

This commit is contained in:
Francesco Mangiacrapa 2024-10-15 16:28:03 +02:00
parent 427ceed7a0
commit 66632e1f82
2 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,7 @@ import org.springframework.context.annotation.Import;
@Configuration
@Import({ EndpointAutoConfiguration.class, PublicMetricsAutoConfiguration.class })
@Path("metrics")
@Path("spring_metrics")
public class SpringBootActuatorConfig {
@Bean

View File

@ -169,6 +169,9 @@ public class StorageIDResolver {
//Reading the content size
size = metaFile.getSize();
LOG.debug("Read size {} from {}", size, StorageMetadataFile.class.getSimpleName());
}else {
//Bug fixing #28276
throw ExceptionManager.notFoundException(httpRequest, "Error on accessing the "+STORAGE_ID+ " '"+storageId+"'. Is it a valid id?", StorageIDResolver.class, help);
}
//CHECKING TO DEFAULT METADATA