| Package | Description |
|---|---|
| com.linecorp.armeria.client.metric |
Metric-collecting client decorators.
|
| com.linecorp.armeria.common.metric |
Common metric collection utilities.
|
| com.linecorp.armeria.internal.common.metric |
Various classes used internally.
|
| com.linecorp.armeria.server.metric |
Metric-collecting service decorators and exporters.
|
| Modifier and Type | Method and Description |
|---|---|
static Function<? super RpcClient,MetricCollectingRpcClient> |
MetricCollectingRpcClient.newDecorator(MeterIdPrefixFunction meterIdPrefixFunction)
Returns an
RpcClient decorator that tracks request stats using MeterRegistry. |
static Function<? super HttpClient,MetricCollectingClient> |
MetricCollectingClient.newDecorator(MeterIdPrefixFunction meterIdPrefixFunction)
Returns an
HttpClient decorator that tracks request stats using MeterRegistry. |
| Modifier and Type | Method and Description |
|---|---|
default MeterIdPrefixFunction |
MeterIdPrefixFunction.andThen(BiFunction<MeterRegistry,MeterIdPrefix,MeterIdPrefix> function)
Returns a
MeterIdPrefixFunction that applies transformation on the MeterIdPrefix
returned by this function. |
static MeterIdPrefixFunction |
MeterIdPrefixFunction.of(BiFunction<? super MeterRegistry,? super RequestOnlyLog,MeterIdPrefix> function)
Returns a
MeterIdPrefixFunction which generates a MeterIdPrefix from the given
MeterRegistry and RequestOnlyLog. |
static MeterIdPrefixFunction |
MeterIdPrefixFunction.ofDefault(String name)
Returns the default function that creates a
MeterIdPrefix with the specified name and
the Tags derived from the RequestLog properties. |
default MeterIdPrefixFunction |
MeterIdPrefixFunction.withTags(Iterable<Tag> tags)
Returns a
MeterIdPrefixFunction that returns a newly created MeterIdPrefix which has
the specified labels added. |
default MeterIdPrefixFunction |
MeterIdPrefixFunction.withTags(String... keyValues)
Returns a
MeterIdPrefixFunction that returns a newly created MeterIdPrefix which has
the specified label added. |
| Modifier and Type | Method and Description |
|---|---|
static void |
RequestMetricSupport.setup(RequestContext ctx,
io.netty.util.AttributeKey<Boolean> requestMetricsSetKey,
MeterIdPrefixFunction meterIdPrefixFunction,
boolean server)
Sets up request metrics.
|
| Modifier and Type | Method and Description |
|---|---|
static Function<? super HttpService,MetricCollectingService> |
MetricCollectingService.newDecorator(MeterIdPrefixFunction meterIdPrefixFunction)
Returns a new
HttpService decorator that tracks request stats using MeterRegistry. |
Copyright © 2020 LeanCloud. All rights reserved.