v2.6.0 - Welcome kamon.enabled
Introducing the kamon.enabled setting
You can now toggle Kamon on and off using the kamon.enabled
setting! The days of modifying code for test environments or making your own poor human's enabled flag are gone. This setting is considered experimental at the moment because there might be corner cases we are not covering, so please let us know if you find any issues with it! When Kamon is disabled, it wont:
- Start any of the configured reporters
- Apply automatic instrumentation
- Start modules like the status page
You should still call Kamon.init()
when starting your application as usual and the kamon.enabled
setting will decide whether the call initializes Kamon or basically turns into a noop. Please note that you can't reconfigure Kamon with a different value for kamon.enabled
after initializing Kamon. If you need to enable/disable Kamon, you'll have to restart the app with the new config value.
Upgrade Notes:
- If you are using the Kanela agent directly, please upgrade to version 1.0.17
- Look for
kamon.enabled
settings on your codebase and clean them up! Over the years we have seen folks implementing this behavior themselves and now is time for cleaning that up.
Improvements:
- jdbc: Support for Snowflake JDBC. Contributed by @jatcwang via #1230
- jdbc: Support for PrestoDB JDBC. Contributed by @ivantopo via #1247
- prometheus: Escape backslashes on label values. Contributed by @ivantopo via #1244
- akka: Ensure the cluster sharding instrumentation works with Akka 2.7. Contributed by @ivantopo via #1245
- kafka: Allow W3C-TraceContext propagation through Kafka. Contributed by @Symbianx via #1237
- play: Ensure the Play Framework instrumentation is loaded after Logback to avoid initializing Logback classes too early. Contributed by @ivantopo via #1236
- logback: Allow adding the source thread ID to MDC. Contributed by @nvollmar via #1250
- logback: Rewrite the Logback instrumentation to ensure consistent context propagation to MDC. Contributed by @nvollmar via #1252
- newrelic: Add support for NewRelic's new license key, in addition to the previously supported NR Insights key. Contributed by @bwiercinski and @matwojcik via #1249