Class: Temporalio::Runtime::LoggingOptions
- Inherits:
-
Struct
- Object
- Struct
- Temporalio::Runtime::LoggingOptions
- Defined in:
- lib/temporalio/runtime.rb
Overview
Logging options for runtime telemetry.
Instance Attribute Summary collapse
-
#log_filter ⇒ LoggingFilterOptions, String
Logging filter for Core, default is new LoggingFilterOptions with no parameters.
Instance Attribute Details
#log_filter ⇒ LoggingFilterOptions, String
Returns Logging filter for Core, default is new Temporalio::Runtime::LoggingFilterOptions with no parameters.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/temporalio/runtime.rb', line 46 LoggingOptions = Struct.new( :log_filter, # TODO(cretz): forward_to keyword_init: true ) do # @!visibility private def initialize(**kwargs) # @type var kwargs: untyped kwargs[:log_filter] = LoggingFilterOptions.new unless kwargs.key?(:log_filter) 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 |