Class WebClientTelemetryMetrics
java.lang.Object
io.helidon.webclient.telemetry.metrics.WebClientTelemetryMetrics
- All Implemented Interfaces:
NamedService, WebClientService
Webclient service for providing metrics which comply with the OpenTelemetry semantic conventions for
client metrics.
-
Nested Class Summary
Nested classes/interfaces inherited from interface WebClientService
WebClientService.Chain, WebClientService.TransportChain, WebClientService.WireProtocolChainModifier and TypeInterfaceDescriptionstatic interfaceChain of services.static interfaceTerminal service chain that can expose transport response context after an invocation.static interfaceTerminal service chain that exposes the currently selected wire protocol. -
Method Summary
Modifier and TypeMethodDescriptionstatic WebClientTelemetryMetricscreate()Creates a new instance of the telemetry metrics service.static WebClientTelemetryMetricsCreates a new instance of the telemetry metrics service using the provided configuration.static WebClientTelemetryMetricscreate(Config config, ServiceRegistry serviceRegistry) Creates a new instance of the telemetry metrics service using the provided configuration and service registry.handle(WebClientService.Chain chain, WebClientServiceRequest clientRequest) Invoke a service, callWebClientService.Chain.proceed(io.helidon.webclient.api.WebClientServiceRequest)to call the next service in the chain.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface WebClientService
name, typeModifier and TypeMethodDescriptiondefault Stringname()Name of this implementation, as provided inConfiguredProvider.create(Config, String).default Stringtype()Type of this implementation, to distinguish instances of same type, with differentNamedService.name().
-
Method Details
-
create
Creates a new instance of the telemetry metrics service.- Returns:
- telemetry metrics service instance
-
create
Creates a new instance of the telemetry metrics service using the provided configuration.- Parameters:
config- telemetry metrics configuration- Returns:
- telemetry metrics service initialized using the configuration
-
create
Creates a new instance of the telemetry metrics service using the provided configuration and service registry.- Parameters:
config- telemetry metrics configurationserviceRegistry- service registry which owns this service- Returns:
- telemetry metrics service initialized using the configuration and service registry
-
handle
public WebClientServiceResponse handle(WebClientService.Chain chain, WebClientServiceRequest clientRequest) Description copied from interface:WebClientServiceInvoke a service, callWebClientService.Chain.proceed(io.helidon.webclient.api.WebClientServiceRequest)to call the next service in the chain.- Specified by:
handlein interfaceWebClientService- Parameters:
chain- to invoke next web client service, or the HTTP call if this is the last serviceclientRequest- request from the client, or previous services- Returns:
- response to be returned to the client
-