Interface MetricsProgrammaticConfig
- All Known Implementing Classes:
SeMetricsProgrammaticConfig
public interface MetricsProgrammaticConfig
Programmatic (rather than user-configurable) settings that govern certain metrics behavior.
Implementations of this interface are typically provided by Helidon itself rather than developers building applications and are not intended for per-deployment (or even per-application) customization.
-
Method Summary
Modifier and TypeMethodDescriptiondefault MetricsConfigapply(MetricsConfig metricsConfig) Creates a newMetricsConfiginstance by applying overrides from this programmatic config instance.default MetricsConfig.Builderapply(MetricsConfig.Builder builder) Augments an existingMetricsConfig.Builder, presumably from actual config, with overrides provided by this programmatic config instance.Name to use for a tag, added to each meter's identity, conveying the application it belongs to.static MetricsProgrammaticConfiginstance()Deprecated, for removal: This API element is subject to removal in a future version.Returns the reserved tag name for the app, if configured.Deprecated, for removal: This API element is subject to removal in a future version.Core metrics ignores this value, and this method will be removed.Deprecated, for removal: This API element is subject to removal in a future version.Core metrics ignores this value, and this method will be removed.
-
Method Details
-
instance
Deprecated, for removal: This API element is subject to removal in a future version.useServices.get(Class)insteadReturns the singleton instance of the metrics programmatic settings.- Returns:
- the singleton
-
scopeDefaultValue
Deprecated, for removal: This API element is subject to removal in a future version.Core metrics ignores this value, and this method will be removed.Returns the retained default scope value; the default implementation returns empty and core metrics ignores any supplied value.- Returns:
- default scope value
-
scopeTagName
Deprecated, for removal: This API element is subject to removal in a future version.Core metrics ignores this value, and this method will be removed.Returns the retained scope tag name; the default implementation returns empty and core metrics ignores any supplied value.- Returns:
- scope tag name
-
appTagName
-
reservedTagNames
-
apply
Augments an existingMetricsConfig.Builder, presumably from actual config, with overrides provided by this programmatic config instance.- Parameters:
builder- original metrics configuration builder- Returns:
- metrics config with any overrides applied
-
apply
Creates a newMetricsConfiginstance by applying overrides from this programmatic config instance.- Parameters:
metricsConfig- original metrics configuration- Returns:
- new metrics configuration with overrides applied
-
Services.get(Class)instead