Class: Temporalio::Runtime::TelemetryOptions
- Inherits:
-
Object
- Object
- 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 Method Summary collapse
-
#initialize(logging: LoggingOptions.new, metrics: nil) ⇒ TelemetryOptions
constructor
Create telemetry options.
Constructor Details
#initialize(logging: LoggingOptions.new, metrics: nil) ⇒ TelemetryOptions
Create telemetry options.
34 35 36 |
# File 'lib/temporalio/runtime.rb', line 34 def initialize(logging: LoggingOptions.new, metrics: nil) super end |
Instance Attribute Details
#logging ⇒ LoggingOptions?
Returns Logging options, default is new LoggingOptions with no parameters. Can be set to nil to disable logging.
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 |
#metrics ⇒ MetricsOptions?
Returns Metrics options.
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 |