Class: Temporalio::Runtime::TelemetryOptions

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

Overview

Telemetry options for the runtime.

Instance Attribute Summary collapse

Instance Attribute Details

#loggingLoggingOptions?

Returns Logging options, default is new LoggingOptions with no parameters. Can be set to nil to disable logging.

Returns:



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

#metricsMetricsOptions?

Returns Metrics options.

Returns:



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