@mwcp/kmore
Version:
midway component for knex, supports declarative transaction and OpenTelemetry
44 lines • 2.16 kB
JavaScript
export var ConfigKey;
(function (ConfigKey) {
ConfigKey["config"] = "kmoreConfig";
ConfigKey["middlewareConfig"] = "kmoreMiddlewareConfig";
ConfigKey["namespace"] = "kmore";
ConfigKey["componentName"] = "kmoreComponent";
ConfigKey["middlewareName"] = "kmoreMiddleware";
ConfigKey["dbSourceManager"] = "DbSourceManager";
ConfigKey["dbManager"] = "DbManager";
ConfigKey["propagationConfig"] = "kmorePropagationConfig";
ConfigKey["Transactional"] = "Transactional";
})(ConfigKey || (ConfigKey = {}));
export var Msg;
(function (Msg) {
Msg["hello"] = "hello world";
Msg["insufficientCallstacks"] = "Insufficient call stacks by getCallerStack";
Msg["callerKeyNotRegisteredOrNotEntry"] = "callerKey is not registered or not entry caller";
Msg["propagationConfigIsUndefined"] = "propagationConfig is undefined";
Msg["registerPropagationFailed"] = "registerPropagation() failed";
})(Msg || (Msg = {}));
export var KmoreAttrNames;
(function (KmoreAttrNames) {
KmoreAttrNames["BuilderCompile"] = "builder.compile";
KmoreAttrNames["BuilderTransacting"] = "builder.transacting";
KmoreAttrNames["QueryStart"] = "query.start";
KmoreAttrNames["QueryQuerying"] = "query.querying";
KmoreAttrNames["QueryResponse"] = "query.response";
KmoreAttrNames["QueryError"] = "query.error";
// TrxCreate = 'trx.create',
KmoreAttrNames["TrxCreateStart"] = "trx.create.start";
KmoreAttrNames["TrxCreateEnd"] = "trx.create.end";
// TrxCommit = 'trx.commit',
KmoreAttrNames["TrxCommitStart"] = "trx.commit.start";
KmoreAttrNames["TrxCommitEnd"] = "trx.commit.end";
// TrxRollback = 'trx.rollback',
KmoreAttrNames["TrxRollbackStart"] = "trx.rollback.start";
KmoreAttrNames["TrxRollbackEnd"] = "trx.rollback.end";
// TrxHookPre = 'trx.hook.pre',
// TrxHookPost = 'trx.hook.post',
KmoreAttrNames["getDataSourceStart"] = "getDataSource.start";
KmoreAttrNames["getDataSourceEndFromCache"] = "getDataSource.end.fromCache";
KmoreAttrNames["getDataSourceEnd"] = "getDataSource.end";
})(KmoreAttrNames || (KmoreAttrNames = {}));
//# sourceMappingURL=types.js.map