override def start()

in inject/inject-logback/src/main/scala/ch/qos/logback/core/LogbackAsyncAppenderBase.scala [82:106]


  override def start(): Unit = {
    super.start()

    gauges.add(
      scopedStatsReceiver.addGauge("discard/threshold") {
        this.getDiscardingThreshold.toFloat
      }
    )
    gauges.add(
      scopedStatsReceiver.addGauge("queue_size") {
        this.getQueueSize.toFloat
      }
    )
    gauges.add(
      scopedStatsReceiver.addGauge("max_flush_time") {
        this.getMaxFlushTime.toFloat
      }
    )
    gauges.add(
      scopedStatsReceiver.addGauge("current_queue_size") {
        if (this.blockingQueue eq null) 0 else this.getNumberOfElementsInQueue.toFloat
      }
    )
    exportRegistryEntries()
  }