Interface: RuntimeOptions
worker.RuntimeOptions
Options used to create a Temporal Runtime. These are mostly about logging and telemetry configuration.
Properties
logger
• Optional logger: Logger
A logger that will receive log messages emitted by the SDK, as well as through the Workflow and Activity context loggers.
By default, the Runtime's logger outputs everything to stderr, filtering out
messages below the INFO level. To customize this behavior, instantiate a
DefaultLogger with a different log level and a custom output function. Refer to
this sample
for an example.
Note that by default, log messages emitted from the native side of the SDK are printed directly
to the console, independently of RuntimeOptions.logger – that is, this option only applies
to log messages emitted from the TS side of the SDK. See TelemetryOptions.logging on
how to turn on forwarding of native logs to the TS logger.
shutdownSignals
• Optional shutdownSignals: Signals[]
Automatically shutdown workers on any of these signals.
Default
['SIGINT', 'SIGTERM', 'SIGQUIT', 'SIGUSR2']
telemetryOptions
• Optional telemetryOptions: TelemetryOptions
Options for Core-side telemetry, including logs and metrics.