Class: Temporalio::Internal::Worker::WorkflowInstance::ReplaySafeMetric::Meter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/temporalio/internal/worker/workflow_instance/replay_safe_metric.rb

Instance Method Summary collapse

Instance Method Details

#create_metric(metric_type, name, description: nil, unit: nil, value_type: :integer) ⇒ Object



22
23
24
25
26
27
28
29
30
# File 'lib/temporalio/internal/worker/workflow_instance/replay_safe_metric.rb', line 22

def create_metric(
  metric_type,
  name,
  description: nil,
  unit: nil,
  value_type: :integer
)
  ReplaySafeMetric.new(super)
end

#with_additional_attributes(additional_attributes) ⇒ Object



32
33
34
# File 'lib/temporalio/internal/worker/workflow_instance/replay_safe_metric.rb', line 32

def with_additional_attributes(additional_attributes)
  Meter.new(super)
end