Package zipkin2.reporter
Class InMemoryReporterMetrics
java.lang.Object
zipkin2.reporter.InMemoryReporterMetrics
- All Implemented Interfaces:
ReporterMetrics
public final class InMemoryReporterMetrics extends Object implements ReporterMetrics
-
Field Summary
-
Constructor Summary
Constructors Constructor Description InMemoryReporterMetrics() -
Method Summary
Modifier and Type Method Description voidclear()voidincrementMessageBytes(int quantity)Increments the number of bytes containing encoded spans in a message.voidincrementMessages()Increments count of message attempts, which contain 1 or more spans.voidincrementMessagesDropped(Throwable cause)Increments count of messages that could not be sent.voidincrementSpanBytes(int quantity)Increments the number of encoded span bytes reported.voidincrementSpans(int quantity)Increments the count of spans reported.voidincrementSpansDropped(int quantity)Increments the count of spans dropped for any reason.longmessageBytes()longmessages()longmessagesDropped()Map<Class<? extends Throwable>,Long>messagesDroppedByCause()longqueuedBytes()longqueuedSpans()longspanBytes()longspans()longspansDropped()voidupdateQueuedBytes(int update)Updates the count of encoded span bytes pending, following a flush activity.voidupdateQueuedSpans(int update)Updates the count of spans pending, following a flush activity.
-
Constructor Details
-
InMemoryReporterMetrics
public InMemoryReporterMetrics()
-
-
Method Details
-
incrementMessages
public void incrementMessages()Description copied from interface:ReporterMetricsIncrements count of message attempts, which contain 1 or more spans. Ex POST requests or Kafka messages sent.- Specified by:
incrementMessagesin interfaceReporterMetrics
-
messages
public long messages() -
incrementMessagesDropped
Description copied from interface:ReporterMetricsIncrements count of messages that could not be sent. Ex host unavailable, or peer disconnect.- Specified by:
incrementMessagesDroppedin interfaceReporterMetrics
-
messagesDroppedByCause
-
messagesDropped
public long messagesDropped() -
incrementMessageBytes
public void incrementMessageBytes(int quantity)Description copied from interface:ReporterMetricsIncrements the number of bytes containing encoded spans in a message.This is a function of span bytes per message and overhead
- Specified by:
incrementMessageBytesin interfaceReporterMetrics- See Also:
Sender.messageSizeInBytes(java.util.List<byte[]>)
-
messageBytes
public long messageBytes() -
incrementSpans
public void incrementSpans(int quantity)Description copied from interface:ReporterMetricsIncrements the count of spans reported. WhenAsyncReporteris used, reported spans will usually be a larger number than messages.- Specified by:
incrementSpansin interfaceReporterMetrics
-
spans
public long spans() -
incrementSpanBytes
public void incrementSpanBytes(int quantity)Description copied from interface:ReporterMetricsIncrements the number of encoded span bytes reported.- Specified by:
incrementSpanBytesin interfaceReporterMetrics
-
spanBytes
public long spanBytes() -
incrementSpansDropped
public void incrementSpansDropped(int quantity)Description copied from interface:ReporterMetricsIncrements the count of spans dropped for any reason. For example, failure queueing or sending.- Specified by:
incrementSpansDroppedin interfaceReporterMetrics
-
spansDropped
public long spansDropped() -
updateQueuedSpans
public void updateQueuedSpans(int update)Description copied from interface:ReporterMetricsUpdates the count of spans pending, following a flush activity.- Specified by:
updateQueuedSpansin interfaceReporterMetrics
-
queuedSpans
public long queuedSpans() -
updateQueuedBytes
public void updateQueuedBytes(int update)Description copied from interface:ReporterMetricsUpdates the count of encoded span bytes pending, following a flush activity.- Specified by:
updateQueuedBytesin interfaceReporterMetrics
-
queuedBytes
public long queuedBytes() -
clear
public void clear()
-