Class: Hooks::Plugins::Instruments::Stats

Inherits:
StatsBase
  • Object
show all
Defined in:
lib/hooks/plugins/instruments/stats.rb

Overview

Default stats instrument implementation

This is a no-op implementation that provides the stats interface without actually sending metrics anywhere. It serves as a safe default when no custom stats implementation is configured.

Users should replace this with their own implementation for services like DataDog, New Relic, StatsD, etc.

Examples:

Replacing with a custom implementation

# In your application initialization:
custom_stats = MyCustomStatsImplementation.new
Hooks::Core::GlobalComponents.stats = custom_stats

See Also:

Method Summary

Methods inherited from StatsBase

#gauge, #increment, #timing

Methods included from Core::ComponentAccess

#failbot, #log, #method_missing, #respond_to_missing?, #stats

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Hooks::Core::ComponentAccess