Class HttpClientSender.Builder
java.lang.Object
io.micronaut.tracing.zipkin.http.client.HttpClientSender.Builder
- Enclosing class:
- HttpClientSender
Constructs the
HttpClientSender
.-
Field Summary
-
Constructor Summary
ConstructorDescriptionBuilder
(io.micronaut.http.client.HttpClientConfiguration clientConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionbuild
(jakarta.inject.Provider<io.micronaut.http.client.LoadBalancerResolver> loadBalancerResolver) Constructs aHttpClientSender
.compressionEnabled
(boolean compressionEnabled) Whether compression is enabled (defaults to true).encoding
(zipkin2.codec.Encoding encoding) The encoding to use.messageMaxBytes
(int messageMaxBytes) The message max bytes.The path to use.The endpoint to use.The endpoint to use.The endpoint to use.
-
Field Details
-
DEFAULT_PATH
- See Also:
-
DEFAULT_SERVER_URL
- See Also:
-
-
Constructor Details
-
Builder
public Builder(io.micronaut.http.client.HttpClientConfiguration clientConfiguration) - Parameters:
clientConfiguration
- the HTTP client configuration
-
-
Method Details
-
getServers
- Returns:
- the configured Zipkin servers
-
encoding
The encoding to use. Defaults toEncoding.JSON
- Parameters:
encoding
- the encoding- Returns:
- this
-
messageMaxBytes
The message max bytes.- Parameters:
messageMaxBytes
- the max bytes- Returns:
- this
-
compressionEnabled
Whether compression is enabled (defaults to true).- Parameters:
compressionEnabled
- true if compression is enabled- Returns:
- this
-
server
The endpoint to use.- Parameters:
endpoint
- the fully qualified URI of the Zipkin endpoint- Returns:
- this
-
url
The endpoint to use.- Parameters:
endpoint
- the fully qualified URI of the Zipkin endpoint- Returns:
- this
-
urls
The endpoint to use.- Parameters:
urls
- the Zipkin server URLs- Returns:
- this
-
path
The path to use.- Parameters:
path
- the path of the Zipkin endpoint- Returns:
- this
-
build
public HttpClientSender build(jakarta.inject.Provider<io.micronaut.http.client.LoadBalancerResolver> loadBalancerResolver) Constructs aHttpClientSender
.- Parameters:
loadBalancerResolver
- resolver capable of resolving references to services into a concrete load-balancer- Returns:
- the sender
-