@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD,PARAMETER,ANNOTATION_TYPE}) public @interface RegistryScope
This can be used to obtain the respective scoped MetricRegistry:
@Inject
@RegistryScope(scope=MetricRegistry.APPLICATION_SCOPE)
MetricRegistry appRegistry;
@Inject
@RegistryScope(scope="customScope")
MetricRegistry customRegistry;
see MetricRegistry.APPLICATION_SCOPE, MetricRegistry.BASE_SCOPE and
MetricRegistry.VENDOR_SCOPEpublic abstract String scope
application, base and vendor scopes automatically and creates user-defined scopes
as needed.
see MetricRegistry.APPLICATION_SCOPE, MetricRegistry.BASE_SCOPE and
MetricRegistry.VENDOR_SCOPECopyright © 2017 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.