Decide whether AWS X-Ray capture should be enabled based on capture mode and daemon configuration.
Semantics:
mode: 'off'
mode: 'on'
mode: 'auto'
daemonAddress
Capture mode.
Daemon address (typically process.env.AWS_XRAY_DAEMON_ADDRESS).
process.env.AWS_XRAY_DAEMON_ADDRESS
True when capture should be enabled.
Decide whether AWS X-Ray capture should be enabled based on capture mode and daemon configuration.
Semantics:
mode: 'off'=> disabledmode: 'on'=> enabledmode: 'auto'=> enabled only whendaemonAddressis truthy