ReporterMetricspublic final class InMemoryReporterMetrics extends Object implements ReporterMetrics
NOOP_METRICS| Constructor | Description |
|---|---|
InMemoryReporterMetrics() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
|
void |
incrementMessageBytes(int quantity) |
Increments the number of bytes containing encoded spans in a message.
|
void |
incrementMessages() |
Increments count of message attempts, which contain 1 or more spans.
|
void |
incrementMessagesDropped(Throwable cause) |
Increments count of messages that could not be sent.
|
void |
incrementSpanBytes(int quantity) |
Increments the number of encoded span bytes reported.
|
void |
incrementSpans(int quantity) |
Increments the count of spans reported.
|
void |
incrementSpansDropped(int quantity) |
Increments the count of spans dropped for any reason.
|
long |
messageBytes() |
|
long |
messages() |
|
long |
messagesDropped() |
|
Map<Class<? extends Throwable>,Long> |
messagesDroppedByCause() |
|
long |
queuedBytes() |
|
long |
queuedSpans() |
|
long |
spanBytes() |
|
long |
spans() |
|
long |
spansDropped() |
|
void |
updateQueuedBytes(int update) |
Updates the count of encoded span bytes pending, following a flush activity.
|
void |
updateQueuedSpans(int update) |
Updates the count of spans pending, following a flush activity.
|
public void incrementMessages()
ReporterMetricsincrementMessages in interface ReporterMetricspublic long messages()
public void incrementMessagesDropped(Throwable cause)
ReporterMetricsincrementMessagesDropped in interface ReporterMetricspublic long messagesDropped()
public void incrementMessageBytes(int quantity)
ReporterMetricsThis is a function of span bytes per message and overhead
incrementMessageBytes in interface ReporterMetricsSender.messageSizeInBytes(java.util.List<byte[]>)public long messageBytes()
public void incrementSpans(int quantity)
ReporterMetricsAsyncReporter is used, reported spans will
usually be a larger number than messages.incrementSpans in interface ReporterMetricspublic long spans()
public void incrementSpanBytes(int quantity)
ReporterMetricsincrementSpanBytes in interface ReporterMetricspublic long spanBytes()
public void incrementSpansDropped(int quantity)
ReporterMetricsincrementSpansDropped in interface ReporterMetricspublic long spansDropped()
public void updateQueuedSpans(int update)
ReporterMetricsupdateQueuedSpans in interface ReporterMetricspublic long queuedSpans()
public void updateQueuedBytes(int update)
ReporterMetricsupdateQueuedBytes in interface ReporterMetricspublic long queuedBytes()
public void clear()
Copyright © 2016–2018 OpenZipkin. All rights reserved.