Class: Temporalio::Runtime::TelemetryOptions

Inherits:
Object
  • Object
show all
Defined in:
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/temporalio/runtime.rb', line 28

class TelemetryOptions
  # Create telemetry options.
  #
  # @param logging [LoggingOptions, nil] Logging options, default is new {LoggingOptions} with no parameters. Can be
  #   set to nil to disable logging.
  # @param metrics [MetricsOptions, nil] Metrics options.
  def initialize(logging: LoggingOptions.new, metrics: nil)
    super
  end

  # @!visibility private
  def _to_bridge
    # @type self: TelemetryOptions
    Internal::Bridge::Runtime::TelemetryOptions.new(
      logging: logging&._to_bridge,
      metrics: metrics&._to_bridge
    )
  end
end

#metricsMetricsOptions?

Returns Metrics options.

Returns:



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/temporalio/runtime.rb', line 28

class TelemetryOptions
  # Create telemetry options.
  #
  # @param logging [LoggingOptions, nil] Logging options, default is new {LoggingOptions} with no parameters. Can be
  #   set to nil to disable logging.
  # @param metrics [MetricsOptions, nil] Metrics options.
  def initialize(logging: LoggingOptions.new, metrics: nil)
    super
  end

  # @!visibility private
  def _to_bridge
    # @type self: TelemetryOptions
    Internal::Bridge::Runtime::TelemetryOptions.new(
      logging: logging&._to_bridge,
      metrics: metrics&._to_bridge
    )
  end
end