Class InMemoryReporterMetrics

    • Constructor Detail

      • InMemoryReporterMetrics

        public InMemoryReporterMetrics()
    • Method Detail

      • incrementMessages

        public void incrementMessages()
        Description copied from interface: ReporterMetrics
        Increments count of message attempts, which contain 1 or more spans. Ex POST requests or Kafka messages sent.
        Specified by:
        incrementMessages in interface ReporterMetrics
      • messages

        public long messages()
      • messagesDropped

        public long messagesDropped()
      • messageBytes

        public long messageBytes()
      • incrementSpans

        public void incrementSpans​(int quantity)
        Description copied from interface: ReporterMetrics
        Increments the count of spans reported. When AsyncReporter is used, reported spans will usually be a larger number than messages.
        Specified by:
        incrementSpans in interface ReporterMetrics
      • spans

        public long spans()
      • incrementSpanBytes

        public void incrementSpanBytes​(int quantity)
        Description copied from interface: ReporterMetrics
        Increments the number of encoded span bytes reported.
        Specified by:
        incrementSpanBytes in interface ReporterMetrics
      • spanBytes

        public long spanBytes()
      • incrementSpansDropped

        public void incrementSpansDropped​(int quantity)
        Description copied from interface: ReporterMetrics
        Increments the count of spans dropped for any reason. For example, failure queueing or sending.
        Specified by:
        incrementSpansDropped in interface ReporterMetrics
      • spansDropped

        public long spansDropped()
      • updateQueuedSpans

        public void updateQueuedSpans​(int update)
        Description copied from interface: ReporterMetrics
        Updates the count of spans pending, following a flush activity.
        Specified by:
        updateQueuedSpans in interface ReporterMetrics
      • queuedSpans

        public long queuedSpans()
      • updateQueuedBytes

        public void updateQueuedBytes​(int update)
        Description copied from interface: ReporterMetrics
        Updates the count of encoded span bytes pending, following a flush activity.
        Specified by:
        updateQueuedBytes in interface ReporterMetrics
      • queuedBytes

        public long queuedBytes()
      • clear

        public void clear()