kamon.module

package kamon.module

Type members

Classlikes

Modules implementing this trait will get registered for periodically receiving metric period snapshots and span batches.

Modules implementing this trait will get registered for periodically receiving metric period snapshots and span batches.

trait MetricReporter extends Module

Modules implementing this trait will get registered for periodically receiving metric period snapshots. The frequency of the period snapshots is controlled by the kamon.metric.tick-interval setting.

Modules implementing this trait will get registered for periodically receiving metric period snapshots. The frequency of the period snapshots is controlled by the kamon.metric.tick-interval setting.

Companion:
object
Companion:
class
trait Module

Modules provide additional capabilities to Kamon, like collecting JVM metrics or exporting the metrics and trace data to external services. Additionally, modules can be automatically registered in Kamon by simply being present in the classpath and having the appropriate entry in the configuration file. All modules get a dedicated execution context which will be used to call the stop and reconfigure hooks, as well as any data processing callbacks.

Modules provide additional capabilities to Kamon, like collecting JVM metrics or exporting the metrics and trace data to external services. Additionally, modules can be automatically registered in Kamon by simply being present in the classpath and having the appropriate entry in the configuration file. All modules get a dedicated execution context which will be used to call the stop and reconfigure hooks, as well as any data processing callbacks.

Besides the basic lifecycle hooks, when registering a MetricReporter and/or SpanReporter module, Kamon will also schedule calls to MetricReporter.reportPeriodSnapshot and SpanReporter.reportSpans in the module's execution context.

Companion:
object
object Module
Companion:
class

Creates an instance of a module.

Creates an instance of a module.

Companion:
object
Companion:
class
class ModuleRegistry(configuration: Configuration, clock: Clock, metricRegistry: MetricRegistry, tracer: Tracer)

Controls the lifecycle of all available modules.

Controls the lifecycle of all available modules.

trait ScheduledAction extends Module

Modules implementing this will have a receive a scheduled call to their run method in a fixed interval. The call interval is controlled by the kamon.modules.{module-name}.interval setting, or passed in programmatically when adding a new scheduled action via Kamon.addScheduledAction(...)

Modules implementing this will have a receive a scheduled call to their run method in a fixed interval. The call interval is controlled by the kamon.modules.{module-name}.interval setting, or passed in programmatically when adding a new scheduled action via Kamon.addScheduledAction(...)

trait SpanReporter extends Module

Modules implementing this trait will get registered for periodically receiving span batches. The frequency of the span batches is controlled by the kamon.trace.tick-interval setting.

Modules implementing this trait will get registered for periodically receiving span batches. The frequency of the span batches is controlled by the kamon.trace.tick-interval setting.