@temporalio/common
Version:
Common library for code that's used across the Client, Worker, and/or Workflow
41 lines • 1.8 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SdkComponent = void 0;
/**
* Possible values of the `sdkComponent` meta attributes on log messages. This
* attribute indicates which subsystem emitted the log message; this may for
* example be used to implement fine-grained filtering of log messages.
*
* Note that there is no guarantee that this list will remain stable in the
* future; values may be added or removed, and messages that are currently
* emitted with some `sdkComponent` value may use a different value in the future.
*/
var SdkComponent;
(function (SdkComponent) {
/**
* Component name for messages emited from Workflow code, using the {@link Workflow context logger|workflow.log}.
* The SDK itself never publishes messages with this component name.
*/
SdkComponent["workflow"] = "workflow";
/**
* Component name for messages emited from an activity, using the {@link activity context logger|Context.log}.
* The SDK itself never publishes messages with this component name.
*/
SdkComponent["activity"] = "activity";
/**
* Component name for messages emited from a Temporal Worker instance.
*
* This notably includes:
* - Issues with Worker or runtime configuration, or the JS execution environment;
* - Worker's, Activity's, and Workflow's lifecycle events;
* - Workflow Activation and Activity Task processing events;
* - Workflow bundling messages;
* - Sink processing issues.
*/
SdkComponent["worker"] = "worker";
/**
* Component name for all messages emitted by the Rust Core SDK library.
*/
SdkComponent["core"] = "core";
})(SdkComponent || (exports.SdkComponent = SdkComponent = {}));
//# sourceMappingURL=logger.js.map