Class: Temporalio::Runtime::LoggingOptions

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

Overview

Logging options for runtime telemetry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_filter: LoggingFilterOptions.new) ⇒ LoggingOptions

Create logging options

Parameters:

  • log_filter (LoggingFilterOptions, String) (defaults to: LoggingFilterOptions.new)

    Logging filter for Core.



61
62
63
# File 'lib/temporalio/runtime.rb', line 61

def initialize(log_filter: LoggingFilterOptions.new)
  super
end

Instance Attribute Details

#log_filterLoggingFilterOptions, String

Returns Logging filter for Core, default is new Temporalio::Runtime::LoggingFilterOptions with no parameters.

Returns:



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/temporalio/runtime.rb', line 57

class LoggingOptions
  # Create logging options
  #
  # @param log_filter [LoggingFilterOptions, String] Logging filter for Core.
  def initialize(log_filter: LoggingFilterOptions.new)
    super
  end

  # @!visibility private
  def _to_bridge
    # @type self: LoggingOptions
    Internal::Bridge::Runtime::LoggingOptions.new(
      log_filter: if log_filter.is_a?(String)
                    log_filter
                  elsif log_filter.is_a?(LoggingFilterOptions)
                    log_filter._to_bridge
                  else
                    raise 'Log filter must be string or LoggingFilterOptions'
                  end
    )
  end
end