Class AutoHttpMetricsConfig.BuilderBase.AutoHttpMetricsConfigImpl
java.lang.Object
io.helidon.webserver.observe.metrics.AutoHttpMetricsConfig.BuilderBase.AutoHttpMetricsConfigImpl
- All Implemented Interfaces:
Prototype.Api, AutoHttpMetricsConfig
- Enclosing class:
AutoHttpMetricsConfig.BuilderBase<BUILDER extends AutoHttpMetricsConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends AutoHttpMetricsConfig>
protected static class AutoHttpMetricsConfig.BuilderBase.AutoHttpMetricsConfigImpl
extends Object
implements AutoHttpMetricsConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AutoHttpMetricsConfig
AutoHttpMetricsConfig.Builder, AutoHttpMetricsConfig.BuilderBase<BUILDER, PROTOTYPE>Modifier and TypeInterfaceDescriptionstatic classFluent API builder forAutoHttpMetricsConfig.static classAutoHttpMetricsConfig.BuilderBase<BUILDER extends AutoHttpMetricsConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends AutoHttpMetricsConfig>Fluent API builder base forAutoHttpMetricsConfig. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAutoHttpMetricsConfigImpl(AutoHttpMetricsConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Whether automatic metrics collection as a whole is enabled.booleaninthashCode()Exact, case-sensitive HTTP methods to be used in the HTTP method tag for automatic metrics, defaulted to the standard HTTP methods; assigning this value fully replaces the set of method names.optIn()Elective attribute for which to opt in.paths()Automatic metrics collection settings.sockets()Socket names for sockets to be instrumented with automatic metrics.toString()booleanDeprecated.Methods inherited from interface AutoHttpMetricsConfig
isMeasured, isOptedInModifier and TypeMethodDescriptiondefault booleanisMeasured(Method method, UriPath uriPath) Decides whether the specified HTTP method and path should be measured.default booleanReturns whether the configuration indicates if the user has opted to have specified attribute (tag) added to meters for the specified meter name.
-
Constructor Details
-
AutoHttpMetricsConfigImpl
Create an instance providing a builder.- Parameters:
builder- extending builder base of this prototype
-
-
Method Details
-
enabled
public boolean enabled()Description copied from interface:AutoHttpMetricsConfigWhether automatic metrics collection as a whole is enabled.- Specified by:
enabledin interfaceAutoHttpMetricsConfig- Returns:
- automatic metrics collection enabled
-
sockets
Description copied from interface:AutoHttpMetricsConfigSocket names for sockets to be instrumented with automatic metrics. Defaults to all sockets.- Specified by:
socketsin interfaceAutoHttpMetricsConfig- Returns:
- socket names
-
paths
Description copied from interface:AutoHttpMetricsConfigAutomatic metrics collection settings. Default excludes built-in Helidon paths (e.g., metrics, health). A request's path and HTTP method are checked against each entry underpathsin order.- If a request matches no entry, then the request is measured.
- If a request matches multiple entries, then the first match wins.
- Specified by:
pathsin interfaceAutoHttpMetricsConfig- Returns:
- automatic metrics collection settings
-
optIn
Description copied from interface:AutoHttpMetricsConfigElective attribute for which to opt in. Each string in the list is of the formmeter-name:attribute-namewheremeter-nameis the name of the meter andattribute-nameis the name of an attribute (tag) which is optional on that meter.- Specified by:
optInin interfaceAutoHttpMetricsConfig- Returns:
- opt-in attributes to be provided
-
knownMethods
Description copied from interface:AutoHttpMetricsConfigExact, case-sensitive HTTP methods to be used in the HTTP method tag for automatic metrics, defaulted to the standard HTTP methods; assigning this value fully replaces the set of method names.Default known HTTP methods:
CONNECT,DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT,QUERY, andTRACE. Unlisted methods are reported as_OTHER, so configurations that add additional method names must also include default methods they intend to retain.Method names are matched exactly. See the OpenTelemetry semantic convention for HTTP request methods.
- Specified by:
knownMethodsin interfaceAutoHttpMetricsConfig- Returns:
- known HTTP methods
-
useUpdatedHttpMetrics
Deprecated.Description copied from interface:AutoHttpMetricsConfigRetained for configuration compatibility with Helidon 4.x; Helidon 27 ignores the value and always uses the updated automatic HTTP metrics behavior.- Specified by:
useUpdatedHttpMetricsin interfaceAutoHttpMetricsConfig- Returns:
- configured value, which does not affect automatic HTTP metrics behavior
-
toString
-
equals
-
hashCode
-