Class: Temporalio::Runtime::TelemetryOptions

Inherits:
Data
  • Object
show all
Defined in:
lib/temporalio/runtime.rb,
lib/temporalio/runtime.rb

Overview

Telemetry options for the runtime.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logging: LoggingOptions.new, metrics: nil) ⇒ TelemetryOptions

Create telemetry options.

Parameters:

  • logging (LoggingOptions, nil) (defaults to: LoggingOptions.new)

    Logging options, default is new LoggingOptions with no parameters. Can be set to nil to disable logging.

  • metrics (MetricsOptions, nil) (defaults to: nil)

    Metrics options.



34
35
36
# File 'lib/temporalio/runtime.rb', line 34

def initialize(logging: LoggingOptions.new, metrics: nil)
  super
end

Instance Attribute Details

#loggingLoggingOptions?

Returns Logging options, default is new LoggingOptions with no parameters. Can be set to nil to disable logging.

Returns:



28
29
30
# File 'lib/temporalio/runtime.rb', line 28

def logging
  @logging
end

#metricsMetricsOptions?

Returns Metrics options.

Returns:



28
29
30
# File 'lib/temporalio/runtime.rb', line 28

def metrics
  @metrics
end