Kamon v2.1.4 Release Notes

Release Date: 2020-07-22 // over 3 years ago
  • Kafka Producer and Consumer Instrumentation

    📚 A long waited feature is finally landing in Kamon: automatic tracing and context propagation for Kafka producers and consumers! The instrumentation will automatically create Spans for all produced messages to Kafka, and provides helper functions to continue the traces on the consumer side. Take a look at the documentation for more details.

    Thanks a lot to @boxsterman for the initial efforts, and to @mladens for separating the producer/consumer from the streams instrumentation. Kafka Streams should be coming soon!

    Summary Metrics in Prometheus

    🔧 It is now possible to expose summaries with the Prometheus reporter, by configuring the metric names that you would like to expose as summaries and the quantiles that you want to calculate for them. For example, the configuration below ensures that the akka.actor.time-in-mailbox metric gets reported as a summary, instead of a histogram:

    kamon.prometheus.summaries {
        metrics = [
          "akka.actor.time-in-mailbox"
        ]
    
        # Quantiles that should be reported (will be translated to the according percentiles)
        quantiles = [
          0.5,
          0.75,
          0.95,
          0.99,
          0.999
        ]
      }
    

    Thanks a lot to @TjarkoG for contributing this feature!

    🛠 Fixes

    • core : In most cases, reporters would not get a chance to process the last bits of data before shutting down. This issue was caused by a bug on the shutdown order and fixed on this release. Fixed by @ivantopo via #811