| Package | Description |
|---|---|
| com.linecorp.armeria.client.logging |
Logging client decorators.
|
| com.linecorp.armeria.common |
Common types.
|
| com.linecorp.armeria.common.util |
Generic utility classes.
|
| com.linecorp.armeria.server.logging |
Logging and metric-collecting service decorators.
|
| Modifier and Type | Method and Description |
|---|---|
LoggingRpcClientBuilder |
LoggingRpcClientBuilder.sampler(Sampler<? super ClientRequestContext> sampler) |
LoggingClientBuilder |
LoggingClientBuilder.sampler(Sampler<? super ClientRequestContext> sampler) |
| Modifier and Type | Method and Description |
|---|---|
static Sampler<Class<? extends Throwable>> |
Flags.verboseExceptionSampler()
Returns the
Sampler that determines whether to retain the stack trace of the exceptions
that are thrown frequently by Armeria. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Sampler<T> |
Sampler.always()
Returns a sampler that will always return
true. |
static <T> Sampler<T> |
Sampler.never()
Returns a sampler that will always return
false. |
static <T> Sampler<T> |
Sampler.of(String specification)
Returns a
Sampler that is configured as specified in the given specification string. |
static <T> Sampler<T> |
Sampler.random(double probability)
Returns a probabilistic sampler which samples at the specified
probability
between 0.0 and 1.0. |
static <T> Sampler<T> |
Sampler.rateLimited(int samplesPerSecond)
Deprecated.
Use
rateLimiting(int). |
static <T> Sampler<T> |
Sampler.rateLimiting(int samplesPerSecond)
Returns a rate-limiting sampler which rate-limits up to the specified
samplesPerSecond. |
| Modifier and Type | Method and Description |
|---|---|
LoggingServiceBuilder |
LoggingServiceBuilder.sampler(Sampler<? super ServiceRequestContext> sampler)
Sets the
Sampler that determines which request needs logging. |
Copyright © 2020 LeanCloud. All rights reserved.