public interface MetricsService
MeterRegistry to generate metrics from filter-service.
You can implement this interface as your requirements and provide the implementation
under META-INF/services. Then filter-service will load your implementation
by using ServiceLoader.| Modifier and Type | Method and Description |
|---|---|
MeterRegistry |
createMeterRegistry()
Create a new
MeterRegistry used by filter-service to generate metrics. |
default void |
start()
A start hook called before filter-service start.
|
default void |
stop()
A stop hook called after filter-service is stopped.
|
default void start()
throws Exception
ExceptionMeterRegistry createMeterRegistry() throws Exception
MeterRegistry used by filter-service to generate metrics.MeterRegistry which meet your requirementsExceptionCopyright © 2020 LeanCloud. All rights reserved.