Module: Solid::Result::EventLogs::Tracking

Defined in:
lib/solid/result/event_logs/tracking.rb

Defined Under Namespace

Modules: Disabled Classes: Enabled

Constant Summary collapse

VERSION =
1
EMPTY_ARRAY =
[].freeze
EMPTY_HASH =
{}.freeze
EMPTY_TREE =
Tree.new(nil).freeze
EMPTY_IDS =
{ tree: EMPTY_ARRAY, matrix: EMPTY_HASH, level_parent: EMPTY_HASH }.freeze
EMPTY =
{
  version: VERSION,
  records: EMPTY_ARRAY,
  metadata: { duration: 0, ids: EMPTY_IDS, trace_id: nil }.freeze
}.freeze

Class Method Summary collapse

Class Method Details

.instanceObject



21
22
23
# File 'lib/solid/result/event_logs/tracking.rb', line 21

def self.instance
  ::Solid::Result::Config.instance.feature.enabled?(:event_logs) ? Tracking::Enabled.new : Tracking::Disabled
end