Package io.prometheus.client.spring.web
Annotation Type EnablePrometheusTiming
-
@Retention(RUNTIME) @Target(TYPE) @Import(MethodTimer.class) @Documented public @interface EnablePrometheusTiming
Enable the use ofPrometheusTimeMethodannotation on classes or methods. Usage: Add this annotation to any SpringConfigurationclass to enable the use of thePrometheusTimeMethodannotation. *@Configuration @EnablePrometheusEndpoint @EnablePrometheusTiming public class MyAppConfig { // Other configuration items... }- Author:
- Andrew Stuart