Class WebClientTelemetryMetrics
java.lang.Object
io.helidon.webclient.telemetry.metrics.WebClientTelemetryMetrics
- All Implemented Interfaces:
NamedService,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 io.helidon.webclient.spi.WebClientService
WebClientService.Chain -
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.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.webclient.spi.WebClientService
name, type
-
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
-
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
-