Class: Temporalio::Runtime::TelemetryOptions
- Inherits:
-
Struct
- Object
- Struct
- Temporalio::Runtime::TelemetryOptions
- Defined in:
- lib/temporalio/runtime.rb
Overview
Telemetry options for the runtime.
Instance Attribute Summary collapse
-
#logging ⇒ LoggingOptions?
Logging options, default is new LoggingOptions with no parameters.
-
#metrics ⇒ MetricsOptions?
Metrics options.
Instance Attribute Details
#logging ⇒ LoggingOptions?
Returns Logging options, default is new LoggingOptions with no parameters. Can be set to nil to disable logging.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/temporalio/runtime.rb', line 19 TelemetryOptions = Struct.new( :logging, :metrics, keyword_init: true ) do # @!visibility private def initialize(**kwargs) # @type var kwargs: untyped kwargs[:logging] = LoggingOptions.new unless kwargs.key?(:logging) 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 |
#metrics ⇒ MetricsOptions?
Returns Metrics options.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/temporalio/runtime.rb', line 19 TelemetryOptions = Struct.new( :logging, :metrics, keyword_init: true ) do # @!visibility private def initialize(**kwargs) # @type var kwargs: untyped kwargs[:logging] = LoggingOptions.new unless kwargs.key?(:logging) 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 |