@dbos-inc/dbos-sdk 1.9.7-preview → 1.9.10-preview

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,5 +12,5 @@ export interface DBOSConfigureOptions {
12
12
  port?: number;
13
13
  username?: string;
14
14
  }
15
- export declare function runAndLog(action: (configFile: ConfigFile, logger: GlobalLogger) => Promise<number>): Promise<void>;
15
+ export declare function runAndLog(action: (configFile: ConfigFile, logger: GlobalLogger) => Promise<number> | number): Promise<void>;
16
16
  //# sourceMappingURL=cli.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAuD,MAAM,UAAU,CAAC;AAK3F,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAWjD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA6ED,wBAAsB,SAAS,CAAC,MAAM,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,KAAK,OAAO,CAAC,MAAM,CAAC,iBA2BxG"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAuD,MAAM,UAAU,CAAC;AAK3F,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAWjD,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IACl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AChB,MAAM,CAAC,KAAK,CAAC,mBAAmB,2BAAkB,EAAE,CAAC,CAAC;QACtD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,IAAI,SAAS,GAAG,SAAS,CAAC;IAC1B,IAAI,UAAU,CAAC,SAAS,EAAE,YAAY,EAAE,CAAC;QACvC,MAAM,GAAG,IAAI,mBAAY,CAAC,IAAI,8BAAkB,CAAC,IAAI,6BAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,UAAU,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACxI,SAAS,GAAG,CAAC,IAAY,EAAE,EAAE;YAC3B,KAAK,MAAM,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE;gBACjC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACrB,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,SAAS,GAAG,CAAC,IAAY,EAAE,EAAE;YAC3B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrB,CAAC,CAAC;IACJ,CAAC;IACD,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,CAAC;QACH,UAAU,GAAG,MAAM,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAChD,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,SAAS,CAAC,UAAU,CAAC,CAAC;AACxB,CAAC;AA3BD,8BA2BC"}
@@ -2,5 +2,5 @@ import { GlobalLogger } from "../telemetry/logs";
2
2
  import { ConfigFile } from "./config";
3
3
  export declare function migrate(configFile: ConfigFile, logger: GlobalLogger): Promise<1 | 0>;
4
4
  export declare function checkDatabaseExists(configFile: ConfigFile, logger: GlobalLogger): Promise<boolean>;
5
- export declare function rollbackMigration(configFile: ConfigFile, logger: GlobalLogger): Promise<1 | 0>;
5
+ export declare function rollbackMigration(configFile: ConfigFile, logger: GlobalLogger): 1 | 0;
6
6
  //# sourceMappingURL=migrate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/migrate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAuB,MAAM,UAAU,CAAC;AAK3D,wBAAsB,OAAO,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,kBA6EzE;AAED,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,oBAarF;AAGD,wBAAsB,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,kBAoBnF"}
1
+ {"version":3,"file":"migrate.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/migrate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAuB,MAAM,UAAU,CAAC;AAK3D,wBAAsB,OAAO,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,kBA4DzE;AAED,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,oBAarF;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,SAqB7E"}
@@ -46,30 +46,12 @@ async function migrate(configFile, logger) {
46
46
  try {
47
47
  migrationCommands?.forEach((cmd) => {
48
48
  logger.info(`Executing migration command: ${cmd}`);
49
- const migrateCommandOutput = (0, child_process_1.execSync)(cmd).toString();
49
+ const migrateCommandOutput = (0, child_process_1.execSync)(cmd, { encoding: 'utf-8' });
50
50
  logger.info(migrateCommandOutput.trimEnd());
51
51
  });
52
52
  }
53
53
  catch (e) {
54
- logger.error("Error running migration");
55
- if (e instanceof Error) {
56
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
57
- const stderr = e.stderr;
58
- if (stderr && Buffer.isBuffer(stderr) && stderr.length > 0) {
59
- logger.error(`Standard Error: ${stderr.toString().trim()}`);
60
- }
61
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
62
- const stdout = e.stdout;
63
- if (stdout && Buffer.isBuffer(stdout) && stdout.length > 0) {
64
- logger.error(`Standard Output: ${stdout.toString().trim()}`);
65
- }
66
- if (e.message) {
67
- logger.error(e.message);
68
- }
69
- }
70
- else {
71
- logger.error(e);
72
- }
54
+ logMigrationError(e, logger, "Error running migration");
73
55
  return 1;
74
56
  }
75
57
  logger.info("Creating DBOS tables and system database.");
@@ -104,8 +86,7 @@ async function checkDatabaseExists(configFile, logger) {
104
86
  }
105
87
  }
106
88
  exports.checkDatabaseExists = checkDatabaseExists;
107
- // eslint-disable-next-line @typescript-eslint/require-await
108
- async function rollbackMigration(configFile, logger) {
89
+ function rollbackMigration(configFile, logger) {
109
90
  logger.info("Starting Migration Rollback");
110
91
  let dbType = configFile.database.app_db_client;
111
92
  if (dbType == undefined) {
@@ -115,11 +96,12 @@ async function rollbackMigration(configFile, logger) {
115
96
  try {
116
97
  rollbackcommands?.forEach((cmd) => {
117
98
  logger.info("Executing " + cmd);
118
- (0, child_process_1.execSync)(cmd);
99
+ const migrateCommandOutput = (0, child_process_1.execSync)(cmd, { encoding: 'utf-8' });
100
+ logger.info(migrateCommandOutput.trimEnd());
119
101
  });
120
102
  }
121
103
  catch (e) {
122
- logger.error("Error rolling back migration. ");
104
+ logMigrationError(e, logger, "Error rolling back migration.");
123
105
  return 1;
124
106
  }
125
107
  return 0;
@@ -167,4 +149,37 @@ async function createDBOSTables(configFile) {
167
149
  await pgUserClient.end();
168
150
  }
169
151
  }
152
+ //Test to determine if e can be treated as an ExecSyncError.
153
+ function isExecSyncError(e) {
154
+ if (
155
+ //Safeguard against NaN. NaN type is number but NaN !== NaN
156
+ "pid" in e && (typeof e.pid === 'number' && e.pid === e.pid) &&
157
+ "stdout" in e && (Buffer.isBuffer(e.stdout) || typeof e.stdout === 'string') &&
158
+ "stderr" in e && (Buffer.isBuffer(e.stderr) || typeof e.stderr === 'string')) {
159
+ return true;
160
+ }
161
+ return false;
162
+ }
163
+ function logMigrationError(e, logger, title) {
164
+ logger.error(title);
165
+ if (e instanceof Error && isExecSyncError(e)) {
166
+ const stderr = e.stderr;
167
+ if (e.stderr.length > 0) {
168
+ logger.error(`Standard Error: ${stderr.toString().trim()}`);
169
+ }
170
+ const stdout = e.stdout;
171
+ if (stdout.length > 0) {
172
+ logger.error(`Standard Output: ${stdout.toString().trim()}`);
173
+ }
174
+ if (e.message) {
175
+ logger.error(e.message);
176
+ }
177
+ if (e.error?.message) {
178
+ logger.error(e.error?.message);
179
+ }
180
+ }
181
+ else {
182
+ logger.error(e);
183
+ }
184
+ }
170
185
  //# sourceMappingURL=migrate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"migrate.js","sourceRoot":"","sources":["../../../src/dbos-runtime/migrate.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AACzC,4CAAiD;AACjD,qCAA2D;AAC3D,2BAAwC;AACxC,iEAA6F;AAC7F,wDAA2E;AAEpE,KAAK,UAAU,OAAO,CAAC,UAAsB,EAAE,MAAoB;IACxE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,EAAE,CAAC;QAClC,MAAM,CAAC,KAAK,CAAC,iGAAiG,CAAC,CAAC;QAChH,OAAO,CAAC,CAAC;IACX,CAAC;IACD,MAAM,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC;IACnD,MAAM,CAAC,IAAI,CAAC,yCAAyC,UAAU,uBAAuB,CAAC,CAAC;IAExF,IAAI,CAAC,CAAC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,MAAM,UAMtF;AAMD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,4BACP,OAAO,EAAE,KAAI,MAAM,mBAM9D;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS;IAAE,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,GAAI,MAAM,CAAA;CAAE,EAAE,IAAI,EAAE,CAAC,QAI1F;AAED,wBAAgB,kBAAkB,CAAC,CAAC,SAAS;IAAE,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,GAAI,MAAM,CAAA;CAAE,EAAE,IAAI,EAAE,CAAC,QAI1F;AAOD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,2EAEhC,MAAM,eACD,MAAM,wLAStB;AAED,wBAAgB,QAAQ,CAAC,MAAM,GAAE,cAAiB,kDAEtC,MAAM,eACD,MAAM,0DACqC,eAAe,uIAO1E;AAED,wBAAgB,WAAW,CAAC,MAAM,GAAE,iBAAoB,kDAE5C,MAAM,eACD,MAAM,0DAEqC,mBAAmB,GAAG,CAAC,+IAOlF;AAED,wBAAgB,YAAY,CAAC,MAAM,GAAE,kBAAqB,kDAE9C,MAAM,eACD,MAAM,0DACqC,mBAAmB,2IAQ9E;AAGD,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,4BAEJ,OAAO,EAAE,KAAI,MAAM,mBAM9D;AAED,wBAAgB,eAAe,mDAEnB,MAAM,eACD,MAAM,0DACqC,WAAW,mIAOtE;AAGD,wBAAgB,UAAU,mDAEd,MAAM,eACD,MAAM,0DACqC,WAAW,mIAOtE"}
@@ -432,9 +432,7 @@ function OrmEntities(entities) {
432
432
  }
433
433
  exports.OrmEntities = OrmEntities;
434
434
  function DBOSInitializer() {
435
- function decorator(target, propertyKey,
436
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
437
- inDescriptor) {
435
+ function decorator(target, propertyKey, inDescriptor) {
438
436
  const { descriptor, registration } = registerAndWrapFunction(target, propertyKey, inDescriptor);
439
437
  registration.init = true;
440
438
  return descriptor;
@@ -444,9 +442,7 @@ function DBOSInitializer() {
444
442
  exports.DBOSInitializer = DBOSInitializer;
445
443
  // For future use with Deploy
446
444
  function DBOSDeploy() {
447
- function decorator(target, propertyKey,
448
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
449
- inDescriptor) {
445
+ function decorator(target, propertyKey, inDescriptor) {
450
446
  const { descriptor, registration } = registerAndWrapFunction(target, propertyKey, inDescriptor);
451
447
  registration.init = true;
452
448
  return descriptor;
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../src/decorators.ts"],"names":[],"mappings":";AAAA,6DAA6D;;;;;;;;;;;;;;;;;;;;;;;;;;AAE7D,4BAA0B;AAE1B,+CAAiC;AAKjC,mCAAiD;AACjD,uDAAuD;AAOvD,MAAa,YAAY;IACvB,QAAQ,GAAkB,MAAM,CAAC;IACjC,MAAM,GAAW,CAAC,CAAC,CAAC;IACpB,SAAS,GAAW,CAAC,CAAC,CAAC;IACvB,KAAK,GAAW,CAAC,CAAC,CAAC;IAEnB,yBAAyB;IACzB,MAAM,CAAC,OAAO,CAAC,MAAc;QAC3B,MAAM,EAAE,GAAG,IAAI,YAAY,EAAE,CAAC;QAC9B,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC;QACxB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;QACnB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,gFAAgF;IAChF,MAAM,CAAC,OAAO,CAAC,SAAiB,EAAE,KAAa;QAC7C,MAAM,EAAE,GAAG,IAAI,YAAY,EAAE,CAAC;QAC9B,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC;QACxB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;QAEjB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,sCAAsC;IACtC,wDAAwD;IACxD,MAAM,CAAC,OAAO,CAAC,GA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AAO,UAAU,CAAC;IACpB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAXD,gCAWC"}
@@ -4,11 +4,11 @@ import { ClassRegistration, MethodRegistration, RegistrationDefaults } from "../
4
4
  import { DBOSExecutor } from "../dbos-executor";
5
5
  type KafkaArgs = [string, number, KafkaMessage];
6
6
  export declare class KafkaRegistration<This, Args extends unknown[], Return> extends MethodRegistration<This, Args, Return> {
7
- kafkaTopic?: string | RegExp;
7
+ kafkaTopics?: string | RegExp | Array<string | RegExp>;
8
8
  consumerConfig?: ConsumerConfig;
9
9
  constructor(origFunc: (this: This, ...args: Args) => Promise<Return>);
10
10
  }
11
- export declare function KafkaConsume(topic: string | RegExp, consumerConfig?: ConsumerConfig): <This, Ctx extends DBOSContext, Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: Ctx, args_0: string, args_1: number, args_2: KafkaMessage) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: Ctx, args_1: string, args_2: number, args_3: KafkaMessage) => Promise<Return>>;
11
+ export declare function KafkaConsume(topics: string | RegExp | Array<string | RegExp>, consumerConfig?: ConsumerConfig): <This, Ctx extends DBOSContext, Return>(target: object, propertyKey: string, inDescriptor: TypedPropertyDescriptor<(this: This, ctx: Ctx, args_0: string, args_1: number, args_2: KafkaMessage) => Promise<Return>>) => TypedPropertyDescriptor<(this: This, ctx: Ctx, args_1: string, args_2: number, args_3: KafkaMessage) => Promise<Return>>;
12
12
  export interface KafkaDefaults extends RegistrationDefaults {
13
13
  kafkaConfig?: KafkaConfig;
14
14
  }
@@ -25,6 +25,7 @@ export declare class DBOSKafka {
25
25
  constructor(dbosExec: DBOSExecutor);
26
26
  initKafka(): Promise<void>;
27
27
  destroyKafka(): Promise<void>;
28
+ safeGroupName(topics: Array<string | RegExp>): string;
28
29
  logRegisteredKafkaEndpoints(): void;
29
30
  }
30
31
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"kafka.d.ts","sourceRoot":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BAAa,sBAAsB,CAAC,EAAE,SAAS;IAAE,KAAI,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAA;CAAE,CAAE,SAAQ,iBAAiB,CAAC,EAAE,CAAE,YAAW,aAAa;IACxI,WAAW,CAAC,EAAE,WAAW,CAAC;gBAEd,IAAI,EAAE,EAAE;CAGrB;AAED,wBAAgB,KAAK,CAAC,WAAW,EAAE,WAAW,4BACH,OAAO,EAAE,KAAG,MAAM,mBAK5D;AAMD,qBAAa,SAAS;IAGR,QAAQ,CAAC,QAAQ,EAAE,YAAY;IAF3C,QAAQ,CAAC,SAAS,EAAE,QAAQ,EAAE,CAAM;gBAEf,QAAQ,EAAE,YAAY;IAErC,SAAS;IAiET,YAAY;IAMlB,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;IAQ5C,2BAA2B;CAiB5B"}
@@ -9,18 +9,18 @@ const utils_1 = require("../utils");
9
9
  /* Kafka Method Decorators */
10
10
  /////////////////////////////
11
11
  class KafkaRegistration extends decorators_1.MethodRegistration {
12
- kafkaTopic;
12
+ kafkaTopics;
13
13
  consumerConfig;
14
14
  constructor(origFunc) {
15
15
  super(origFunc);
16
16
  }
17
17
  }
18
18
  exports.KafkaRegistration = KafkaRegistration;
19
- function KafkaConsume(topic, consumerConfig) {
19
+ function KafkaConsume(topics, consumerConfig) {
20
20
  function kafkadec(target, propertyKey, inDescriptor) {
21
21
  const { descriptor, registration } = (0, decorators_1.registerAndWrapFunction)(target, propertyKey, inDescriptor);
22
22
  const kafkaRegistration = registration;
23
- kafkaRegistration.kafkaTopic = topic;
23
+ kafkaRegistration.kafkaTopics = topics;
24
24
  kafkaRegistration.consumerConfig = consumerConfig;
25
25
  return descriptor;
26
26
  }
@@ -54,7 +54,7 @@ class DBOSKafka {
54
54
  async initKafka() {
55
55
  for (const registeredOperation of this.dbosExec.registeredOperations) {
56
56
  const ro = registeredOperation;
57
- if (ro.kafkaTopic) {
57
+ if (ro.kafkaTopics) {
58
58
  const defaults = ro.defaults;
59
59
  if (!ro.txnConfig && !ro.workflowConfig) {
60
60
  throw new error_1.DBOSError(`Error registering method ${defaults.name}.${ro.name}: A Kafka decorator can only be assigned to a transaction or workflow!`);
@@ -62,8 +62,15 @@ class DBOSKafka {
62
62
  if (!defaults.kafkaConfig) {
63
63
  throw new error_1.DBOSError(`Error registering method ${defaults.name}.${ro.name}: Kafka configuration not found. Does class ${defaults.name} have an @Kafka decorator?`);
64
64
  }
65
+ const topics = [];
66
+ if (Array.isArray(ro.kafkaTopics)) {
67
+ topics.push(...ro.kafkaTopics);
68
+ }
69
+ else if (ro.kafkaTopics) {
70
+ topics.push(ro.kafkaTopics);
71
+ }
65
72
  const kafka = new kafkajs_1.Kafka(defaults.kafkaConfig);
66
- const consumerConfig = ro.consumerConfig ?? { groupId: `dbos-kafka-group-${ro.kafkaTopic}` };
73
+ const consumerConfig = ro.consumerConfig ?? { groupId: `${this.safeGroupName(topics)}` };
67
74
  const consumer = kafka.consumer(consumerConfig);
68
75
  await consumer.connect();
69
76
  // A temporary workaround for https://github.com/tulios/kafkajs/pull/1558 until it gets fixed
@@ -74,7 +81,7 @@ class DBOSKafka {
74
81
  const multiplier = defaults.kafkaConfig.retry ? defaults.kafkaConfig.retry.multiplier ?? 2 : 2;
75
82
  for (let i = 0; i < maxRetries; i++) {
76
83
  try {
77
- await consumer.subscribe({ topic: ro.kafkaTopic, fromBeginning: true });
84
+ await consumer.subscribe({ topics: topics, fromBeginning: true });
78
85
  break;
79
86
  }
80
87
  catch (error) {
@@ -116,14 +123,28 @@ class DBOSKafka {
116
123
  await consumer.disconnect();
117
124
  }
118
125
  }
126
+ safeGroupName(topics) {
127
+ const safeGroupIdPart = topics
128
+ .map(r => r.toString())
129
+ .map(r => r.replaceAll(/[^a-zA-Z0-9\\-]/g, ''))
130
+ .join('-');
131
+ return `dbos-kafka-group-${safeGroupIdPart}`.slice(0, 255);
132
+ }
119
133
  logRegisteredKafkaEndpoints() {
120
134
  const logger = this.dbosExec.logger;
121
135
  logger.info("Kafka endpoints supported:");
122
136
  this.dbosExec.registeredOperations.forEach((registeredOperation) => {
123
137
  const ro = registeredOperation;
124
- if (ro.kafkaTopic) {
138
+ if (ro.kafkaTopics) {
125
139
  const defaults = ro.defaults;
126
- logger.info(` ${ro.kafkaTopic} -> ${defaults.name}.${ro.name}`);
140
+ if (Array.isArray(ro.kafkaTopics)) {
141
+ ro.kafkaTopics.forEach(kafkaTopic => {
142
+ logger.info(` ${kafkaTopic} -> ${defaults.name}.${ro.name}`);
143
+ });
144
+ }
145
+ else {
146
+ logger.info(` ${ro.kafkaTopics} -> ${defaults.name}.${ro.name}`);
147
+ }
127
148
  }
128
149
  });
129
150
  }
@@ -1 +1 @@
1
- {"version":3,"file":"kafka.js","sourceRoot":"","sources":["../../../src/kafka/kafka.ts"],"names":[],"mappings":";;;AAAA,qCAAsH;AAEtH,8CAAmJ;AAInJ,oCAAqC;AACrC,oCAAiC;AAIjC,6BAA6B;AAC7B,6BAA6B;AAC7B,6BAA6B;AAE7B,MAAa,iBAAwD,SAAQ,+BAAsC;IACjH,UAAU,CAAmB;IAC7B,cAAc,CAAkB;IAEhC,YAAY,QAAwD;QAClE,KAAK,CAAC,QAAQ,CAAC,CAAC;IAClB,CAAC;CACF;AAPD,8CAOC;AAED,SAAgB,YAAY,CAAC,KAAsB,EAAE,cAA+B;IAClF,SAAS,QAAQ,CACf,MAAc,EACd,WAAmB,EACnB,YAAoG;QAEpG,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,IAAA,oCAAuB,EAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;QAChG,MAAM,iBAAiB,GAAG,YAAqE,CAAC;QAChG,iBAAiB,CAAC,UAAU,GAAG,KAAK,CAAC;QACrC,iBAAiB,CAAC,cAAc,GAAG,cAAc,CAAC;QAElD,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC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AI,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;oBAClE,CAAC,CAAC,CAAC;gBACL,CAAC;qBAAM,CAAC;oBACN,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,WAAW,OAAO,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;gBACtE,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AArGD,8BAqGC"}
@@ -2,8 +2,9 @@ import { LoggerConfig } from "./logs";
2
2
  import { OTLPExporterConfig } from "./exporters";
3
3
  import { Span } from "@opentelemetry/sdk-trace-base";
4
4
  import { LogRecord } from "@opentelemetry/api-logs";
5
- export declare function isTraceSignal(signal: any): signal is Span;
6
- export declare function isLogSignal(signal: any): signal is LogRecord;
5
+ import { TelemetrySignal } from "./collector";
6
+ export declare function isTraceSignal(signal: TelemetrySignal): signal is Span;
7
+ export declare function isLogSignal(signal: TelemetrySignal): signal is LogRecord;
7
8
  export interface TelemetryConfig {
8
9
  logs?: LoggerConfig;
9
10
  OTLPExporter?: OTLPExporterConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/telemetry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,wBAAgB,aAAa,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,IAAI,CAIzD;AAGD,wBAAgB,WAAW,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,SAAS,CAI5D;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,YAAY,CAAC,EAAE,kBAAkB,CAAC;CACnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/telemetry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,wBAAgB,aAAa,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,IAAI,IAAI,CAGrE;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,IAAI,SAAS,CAGxE;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,YAAY,CAAC,EAAE,kBAAkB,CAAC;CACnC"}
@@ -1,19 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isLogSignal = exports.isTraceSignal = void 0;
4
- // We could implement our own types and avoid having `any`, but this has likely little value
5
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
4
  function isTraceSignal(signal) {
7
5
  // Span is an interface that has a property 'kind'
8
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
9
- return signal && 'kind' in signal;
6
+ return 'kind' in signal;
10
7
  }
11
8
  exports.isTraceSignal = isTraceSignal;
12
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
13
9
  function isLogSignal(signal) {
14
10
  // LogRecord is an interface that has a property 'severityText' and 'severityNumber'
15
- // eslint-disable-next-line @typescript-eslint/no-unsafe-return
16
- return signal && 'severityText' in signal && 'severityNumber' in signal;
11
+ return 'severityText' in signal && 'severityNumber' in signal;
17
12
  }
18
13
  exports.isLogSignal = isLogSignal;
19
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/telemetry/index.ts"],"names":[],"mappings":";;;AAKA,4FAA4F;AAC5F,8DAA8D;AAC9D,SAAgB,aAAa,CAAC,MAAW;IACvC,kDAAkD;IAClD,+DAA+D;IAC/D,OAAO,MAAM,IAAI,MAAM,IAAI,MAAM,CAAC;AACpC,CAAC;AAJD,sCAIC;AAED,8DAA8D;AAC9D,SAAgB,WAAW,CAAC,MAAW;IACrC,oFAAoF;IACpF,+DAA+D;IAC/D,OAAO,MAAM,IAAI,cAAc,IAAI,MAAM,IAAI,gBAAgB,IAAI,MAAM,CAAC;AAC1E,CAAC;AAJD,kCAIC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/telemetry/index.ts"],"names":[],"mappings":";;;AAMA,SAAgB,aAAa,CAAC,MAAuB;IACnD,kDAAkD;IAClD,OAAO,MAAM,IAAI,MAAM,CAAC;AAC1B,CAAC;AAHD,sCAGC;AAED,SAAgB,WAAW,CAAC,MAAuB;IACjD,oFAAoF;IACpF,OAAO,cAAc,IAAI,MAAM,IAAI,gBAAgB,IAAI,MAAM,CAAC;AAChE,CAAC;AAHD,kCAGC"}
@@ -26,10 +26,10 @@ export declare class GlobalLogger {
26
26
  private readonly logger;
27
27
  readonly addContextMetadata: boolean;
28
28
  constructor(telemetryCollector?: TelemetryCollector | undefined, config?: LoggerConfig);
29
- info(logEntry: any, metadata?: ContextualMetadata): void;
30
- debug(logEntry: any, metadata?: ContextualMetadata): void;
31
- warn(logEntry: any, metadata?: ContextualMetadata): void;
32
- error(inputError: any, metadata?: ContextualMetadata & StackTrace): void;
29
+ info(logEntry: unknown, metadata?: ContextualMetadata): void;
30
+ debug(logEntry: unknown, metadata?: ContextualMetadata): void;
31
+ warn(logEntry: unknown, metadata?: ContextualMetadata): void;
32
+ error(inputError: unknown, metadata?: ContextualMetadata & StackTrace): void;
33
33
  destroy(): Promise<void>;
34
34
  }
35
35
  /******************/
@@ -39,10 +39,10 @@ export declare class Logger {
39
39
  readonly ctx: DBOSContextImpl;
40
40
  readonly metadata: ContextualMetadata;
41
41
  constructor(globalLogger: GlobalLogger, ctx: DBOSContextImpl);
42
- info(logEntry: any): void;
43
- debug(logEntry: any): void;
44
- warn(logEntry: any): void;
45
- error(inputError: any): void;
42
+ info(logEntry: unknown): void;
43
+ debug(logEntry: unknown): void;
44
+ warn(logEntry: unknown): void;
45
+ error(inputError: unknown): void;
46
46
  }
47
47
  export {};
48
48
  //# sourceMappingURL=logs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../../src/telemetry/logs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,MAAM,IAAI,cAAc,EAAE,MAAM,SAAS,CAAC;AAGrF,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,mBAAmB;AAEnB,mBAAmB;AAEnB,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,KAAK,kBAAkB,GAAG;IACxB,sBAAsB,EAAE,OAAO,CAAC;IAChC,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,UAAU,UAAU;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,WAAW,aAAc,SAAQ,cAAc;IACnD,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;CACjD;AAED,qBAAa,YAAY;IAIX,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IAHhD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiB;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gBACT,YAAY,EAAE,YAAY,EAAW,GAAG,EAAE,eAAe;IAOtF,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAI7B,KAAK,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAI9B,IAAI,CAAC,QAAQ,EAAE,OAAO,GAAG,IAAI;IAI7B,KAAK,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;CAGjC"}
@@ -26,7 +26,6 @@ class GlobalLogger {
26
26
  this.addContextMetadata = config?.addContextMetadata || false;
27
27
  }
28
28
  // We use this form of winston logging methods: `(message: string, ...meta: any[])`. See node_modules/winston/index.d.ts
29
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
30
29
  info(logEntry, metadata) {
31
30
  if (typeof logEntry === "string") {
32
31
  this.logger.info(logEntry, metadata);
@@ -35,7 +34,6 @@ class GlobalLogger {
35
34
  this.logger.info(JSON.stringify(logEntry), metadata);
36
35
  }
37
36
  }
38
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
39
37
  debug(logEntry, metadata) {
40
38
  if (typeof logEntry === "string") {
41
39
  this.logger.debug(logEntry, metadata);
@@ -44,7 +42,6 @@ class GlobalLogger {
44
42
  this.logger.debug(JSON.stringify(logEntry), metadata);
45
43
  }
46
44
  }
47
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
48
45
  warn(logEntry, metadata) {
49
46
  if (typeof logEntry === "string") {
50
47
  this.logger.warn(logEntry, metadata);
@@ -54,7 +51,6 @@ class GlobalLogger {
54
51
  }
55
52
  }
56
53
  // metadata can have both ContextualMetadata and the error stack trace
57
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
58
54
  error(inputError, metadata) {
59
55
  if (inputError instanceof Error) {
60
56
  this.logger.error(inputError.message, { ...metadata, stack: inputError.stack });
@@ -87,19 +83,15 @@ class Logger {
87
83
  includeContextMetadata: this.globalLogger.addContextMetadata,
88
84
  };
89
85
  }
90
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
91
86
  info(logEntry) {
92
87
  this.globalLogger.info(logEntry, this.metadata);
93
88
  }
94
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
95
89
  debug(logEntry) {
96
90
  this.globalLogger.debug(logEntry, this.metadata);
97
91
  }
98
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
99
92
  warn(logEntry) {
100
93
  this.globalLogger.warn(logEntry, this.metadata);
101
94
  }
102
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
103
95
  error(inputError) {
104
96
  this.globalLogger.error(inputError, this.metadata);
105
97
  }
@@ -1 +1 @@
1
- {"version":3,"file":"logs.js","sourceRoot":"","sources":["../../../src/telemetry/logs.ts"],"names":[],"mappings":";;;AAAA,qCAAqF;AACrF,qDAAsD;AACtD,2EAA2E;AAE3E,sDAA8F;AAC9F,sDAAoE;AA8BpE,MAAa,YAAY;IAIM;IAHZ,MAAM,CAAiB;IAC/B,kBAAkB,CAAU;IAErC,YAA6B,kBAAuC,EAAE,MAAqB;QAA9D,uBAAkB,GAAlB,kBAAkB,CAAqB;QAClE,MAAM,iBAAiB,GAAsB,EAAE,CAAC;QAChD,iBAAiB,CAAC,IAAI,CACpB,IAAI,oBAAU,CAAC,OAAO,CAAC;YACrB,MAAM,EAAE,aAAa;YACrB,KAAK,EAAE,MAAM,EAAE,QAAQ,IAAI,MAAM;YACjC,MAAM,EAAE,MAAM,EAAE,MAAM,IAAI,KAAK;SAChC,CAAC,CACH,CAAC;QACF,kFAAkF;QAClF,IAAI,IAAI,CAAC,kBAAkB,EAAE,QAAQ,EAAE,CAAC;YACtC,iBAAiB,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,IAAI,CAAC,kBAAkB,EAAE,MAAM,EAAE,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC;QACzG,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,IAAA,sBAAY,EAAC,EAAE,UAAU,EAAE,iBAAiB,EAAE,CAAC,CAAC;QAC9D,IAAI,CAAC,kBAAkB,GAAG,MAAM,EA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