@dbos-inc/dbos-sdk 1.13.2-preview → 1.13.6-preview
Sign up to get free protection for your applications and to get access to all the features.
- package/dbos-config.schema.json +2 -1
- package/dist/src/context.d.ts +2 -0
- package/dist/src/context.d.ts.map +1 -1
- package/dist/src/context.js +3 -2
- package/dist/src/context.js.map +1 -1
- package/dist/src/dbos-executor.d.ts.map +1 -1
- package/dist/src/dbos-executor.js +10 -12
- package/dist/src/dbos-executor.js.map +1 -1
- package/dist/src/dbos-runtime/config.d.ts +0 -1
- package/dist/src/dbos-runtime/config.d.ts.map +1 -1
- package/dist/src/dbos-runtime/config.js +2 -4
- package/dist/src/dbos-runtime/config.js.map +1 -1
- package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
- package/dist/src/debugger/debug_workflow.js +6 -5
- package/dist/src/debugger/debug_workflow.js.map +1 -1
- package/dist/src/httpServer/server.js +2 -2
- package/dist/src/httpServer/server.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +4 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/system_database.d.ts +2 -0
- package/dist/src/system_database.d.ts.map +1 -1
- package/dist/src/system_database.js +49 -38
- package/dist/src/system_database.js.map +1 -1
- package/dist/src/telemetry/logs.d.ts.map +1 -1
- package/dist/src/telemetry/logs.js +13 -10
- package/dist/src/telemetry/logs.js.map +1 -1
- package/dist/src/telemetry/traces.d.ts +1 -0
- package/dist/src/telemetry/traces.d.ts.map +1 -1
- package/dist/src/telemetry/traces.js +5 -2
- package/dist/src/telemetry/traces.js.map +1 -1
- package/dist/src/utils.d.ts +5 -12
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/utils.js +26 -13
- package/dist/src/utils.js.map +1 -1
- package/dist/src/workflow.d.ts.map +1 -1
- package/dist/src/workflow.js +6 -6
- package/dist/src/workflow.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/src/dbos-runtime/applicationVersion.d.ts +0 -3
- package/dist/src/dbos-runtime/applicationVersion.d.ts.map +0 -1
- package/dist/src/dbos-runtime/applicationVersion.js +0 -13
- package/dist/src/dbos-runtime/applicationVersion.js.map +0 -1
package/dist/src/index.js
CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
23
23
|
return result;
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
|
-
exports.Scheduled = exports.SchedulerConfig = exports.SchedulerMode = exports.KafkaConsume = exports.Kafka = exports.OpenApiSecurityScheme = exports.KoaMiddleware = exports.KoaCors = exports.KoaBodyParser = exports.Authentication = exports.PostApi = exports.GetApi = exports.ArgSource = exports.ArgSources = exports.DBOSDeploy = exports.DBOSInitializer = exports.RequiredRole = exports.Communicator = exports.Workflow = exports.Transaction = exports.configureInstance = exports.ConfiguredInstance = exports.OrmEntities = exports.DefaultArgOptional = exports.DefaultArgRequired = exports.DefaultRequiredRole = exports.ArgVarchar = exports.ArgDate = exports.ArgName = exports.LogMask = exports.SkipLogging = exports.ArgOptional = exports.ArgRequired = exports.LogMasks = exports.DBOSResponseError = exports.Error = exports.StatusString = exports.InitContext = exports.createTestingRuntime = void 0;
|
26
|
+
exports.Scheduled = exports.SchedulerConfig = exports.SchedulerMode = exports.KafkaConsume = exports.Kafka = exports.OpenApiSecurityScheme = exports.KoaMiddleware = exports.KoaCors = exports.KoaBodyParser = exports.Authentication = exports.DeleteApi = exports.PutApi = exports.PatchApi = exports.PostApi = exports.GetApi = exports.ArgSource = exports.ArgSources = exports.DBOSDeploy = exports.DBOSInitializer = exports.RequiredRole = exports.Communicator = exports.Workflow = exports.Transaction = exports.configureInstance = exports.ConfiguredInstance = exports.OrmEntities = exports.DefaultArgOptional = exports.DefaultArgRequired = exports.DefaultRequiredRole = exports.ArgVarchar = exports.ArgDate = exports.ArgName = exports.LogMask = exports.SkipLogging = exports.ArgOptional = exports.ArgRequired = exports.LogMasks = exports.DBOSResponseError = exports.Error = exports.StatusString = exports.InitContext = exports.createTestingRuntime = void 0;
|
27
27
|
var testing_runtime_1 = require("./testing/testing_runtime");
|
28
28
|
Object.defineProperty(exports, "createTestingRuntime", { enumerable: true, get: function () { return testing_runtime_1.createTestingRuntime; } });
|
29
29
|
var context_1 = require("./context");
|
@@ -67,6 +67,9 @@ Object.defineProperty(exports, "ArgSource", { enumerable: true, get: function ()
|
|
67
67
|
// Endpoint Decorators
|
68
68
|
Object.defineProperty(exports, "GetApi", { enumerable: true, get: function () { return handler_1.GetApi; } });
|
69
69
|
Object.defineProperty(exports, "PostApi", { enumerable: true, get: function () { return handler_1.PostApi; } });
|
70
|
+
Object.defineProperty(exports, "PatchApi", { enumerable: true, get: function () { return handler_1.PatchApi; } });
|
71
|
+
Object.defineProperty(exports, "PutApi", { enumerable: true, get: function () { return handler_1.PutApi; } });
|
72
|
+
Object.defineProperty(exports, "DeleteApi", { enumerable: true, get: function () { return handler_1.DeleteApi; } });
|
70
73
|
var middleware_1 = require("./httpServer/middleware");
|
71
74
|
// Middleware Decorators
|
72
75
|
Object.defineProperty(exports, "Authentication", { enumerable: true, get: function () { return middleware_1.Authentication; } });
|
package/dist/src/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAGmC;AAFjC,uHAAA,oBAAoB,OAAA;AAItB,qCAGmB;AADjB,sGAAA,WAAW,OAAA;AAQb,uCAKoB;AADlB,wGAAA,YAAY,OAAA;AAQd,iDAAiC;AAEjC,iCAEiB;AADf,0GAAA,iBAAiB,OAAA;AAGnB,2CA8BsB;AA7BpB,sGAAA,QAAQ,OAAA;AAER,uBAAuB;AACvB,yGAAA,WAAW,OAAA;AACX,yGAAA,WAAW,OAAA;AACX,yGAAA,WAAW,OAAA;AACX,qGAAA,OAAO,OAAA;AACP,qGAAA,OAAO,OAAA;AACP,qGAAA,OAAO,O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F"}
|
@@ -76,10 +76,10 @@ class PostgresSystemDatabase {
|
|
76
76
|
return dbos_executor_1.dbosNull;
|
77
77
|
}
|
78
78
|
else if (rows[0].status === workflow_1.StatusString.ERROR) {
|
79
|
-
throw (0, serialize_error_1.deserializeError)(
|
79
|
+
throw (0, serialize_error_1.deserializeError)(utils_1.DBOSJSON.parse(rows[0].error));
|
80
80
|
}
|
81
81
|
else {
|
82
|
-
return
|
82
|
+
return utils_1.DBOSJSON.parse(rows[0].output);
|
83
83
|
}
|
84
84
|
}
|
85
85
|
async initWorkflowStatus(initStatus, args) {
|
@@ -95,8 +95,10 @@ class PostgresSystemDatabase {
|
|
95
95
|
request,
|
96
96
|
output,
|
97
97
|
executor_id,
|
98
|
+
application_version,
|
99
|
+
application_id,
|
98
100
|
created_at
|
99
|
-
) VALUES($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12)
|
101
|
+
) VALUES($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14)
|
100
102
|
ON CONFLICT (workflow_uuid) DO NOTHING`, [
|
101
103
|
initStatus.workflowUUID,
|
102
104
|
initStatus.status,
|
@@ -105,14 +107,16 @@ class PostgresSystemDatabase {
|
|
105
107
|
initStatus.configName,
|
106
108
|
initStatus.authenticatedUser,
|
107
109
|
initStatus.assumedRole,
|
108
|
-
|
109
|
-
|
110
|
+
utils_1.DBOSJSON.stringify(initStatus.authenticatedRoles),
|
111
|
+
utils_1.DBOSJSON.stringify(initStatus.request),
|
110
112
|
null,
|
111
113
|
initStatus.executorID,
|
114
|
+
initStatus.applicationVersion,
|
115
|
+
initStatus.applicationID,
|
112
116
|
initStatus.createdAt,
|
113
117
|
]);
|
114
|
-
const { rows } = await this.pool.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_inputs (workflow_uuid, inputs) VALUES($1, $2) ON CONFLICT (workflow_uuid) DO UPDATE SET workflow_uuid = excluded.workflow_uuid RETURNING inputs`, [initStatus.workflowUUID,
|
115
|
-
return
|
118
|
+
const { rows } = await this.pool.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_inputs (workflow_uuid, inputs) VALUES($1, $2) ON CONFLICT (workflow_uuid) DO UPDATE SET workflow_uuid = excluded.workflow_uuid RETURNING inputs`, [initStatus.workflowUUID, utils_1.DBOSJSON.stringify(args)]);
|
119
|
+
return utils_1.DBOSJSON.parse(rows[0].inputs);
|
116
120
|
}
|
117
121
|
bufferWorkflowOutput(workflowUUID, status) {
|
118
122
|
this.workflowStatusBuffer.set(workflowUUID, status);
|
@@ -132,7 +136,7 @@ class PostgresSystemDatabase {
|
|
132
136
|
try {
|
133
137
|
let finishedCnt = 0;
|
134
138
|
while (finishedCnt < totalSize) {
|
135
|
-
let sqlStmt = `INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_status (workflow_uuid, status, name, authenticated_user, assumed_role, authenticated_roles, request, output, executor_id, created_at, updated_at) VALUES `;
|
139
|
+
let sqlStmt = `INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_status (workflow_uuid, status, name, authenticated_user, assumed_role, authenticated_roles, request, output, executor_id, application_version, application_id, created_at, updated_at) VALUES `;
|
136
140
|
let paramCnt = 1;
|
137
141
|
const values = [];
|
138
142
|
const batchUUIDs = [];
|
@@ -140,8 +144,8 @@ class PostgresSystemDatabase {
|
|
140
144
|
if (paramCnt > 1) {
|
141
145
|
sqlStmt += ", ";
|
142
146
|
}
|
143
|
-
sqlStmt += `($${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++})`;
|
144
|
-
values.push(workflowUUID, status.status, status.name, status.authenticatedUser, status.assumedRole,
|
147
|
+
sqlStmt += `($${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++}, $${paramCnt++})`;
|
148
|
+
values.push(workflowUUID, status.status, status.name, status.authenticatedUser, status.assumedRole, utils_1.DBOSJSON.stringify(status.authenticatedRoles), utils_1.DBOSJSON.stringify(status.request), utils_1.DBOSJSON.stringify(status.output), status.executorID, status.applicationVersion, status.applicationID, status.createdAt, Date.now());
|
145
149
|
batchUUIDs.push(workflowUUID);
|
146
150
|
finishedCnt++;
|
147
151
|
if (batchUUIDs.length >= this.flushBatchSize) {
|
@@ -152,7 +156,9 @@ class PostgresSystemDatabase {
|
|
152
156
|
sqlStmt += " ON CONFLICT (workflow_uuid) DO UPDATE SET status=EXCLUDED.status, output=EXCLUDED.output, updated_at=EXCLUDED.updated_at;";
|
153
157
|
await this.pool.query(sqlStmt, values);
|
154
158
|
// Clean up after each batch succeeds
|
155
|
-
batchUUIDs.forEach((value) => {
|
159
|
+
batchUUIDs.forEach((value) => {
|
160
|
+
localBuffer.delete(value);
|
161
|
+
});
|
156
162
|
}
|
157
163
|
}
|
158
164
|
catch (error) {
|
@@ -182,9 +188,11 @@ class PostgresSystemDatabase {
|
|
182
188
|
request,
|
183
189
|
error,
|
184
190
|
executor_id,
|
191
|
+
application_id,
|
192
|
+
application_version,
|
185
193
|
created_at,
|
186
194
|
updated_at
|
187
|
-
) VALUES($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13)
|
195
|
+
) VALUES($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15)
|
188
196
|
ON CONFLICT (workflow_uuid)
|
189
197
|
DO UPDATE SET status=EXCLUDED.status, error=EXCLUDED.error, updated_at=EXCLUDED.updated_at;`, [
|
190
198
|
workflowUUID,
|
@@ -194,11 +202,14 @@ class PostgresSystemDatabase {
|
|
194
202
|
status.configName,
|
195
203
|
status.authenticatedUser,
|
196
204
|
status.assumedRole,
|
197
|
-
|
198
|
-
|
199
|
-
status.error,
|
205
|
+
utils_1.DBOSJSON.stringify(status.authenticatedRoles),
|
206
|
+
utils_1.DBOSJSON.stringify(status.request),
|
207
|
+
status.error,
|
208
|
+
status.executorID,
|
209
|
+
status.applicationID,
|
210
|
+
status.applicationVersion,
|
200
211
|
status.createdAt,
|
201
|
-
Date.now()
|
212
|
+
Date.now(),
|
202
213
|
]);
|
203
214
|
}
|
204
215
|
async getPendingWorkflows(executorID) {
|
@@ -229,7 +240,7 @@ class PostgresSystemDatabase {
|
|
229
240
|
sqlStmt += ", ";
|
230
241
|
}
|
231
242
|
sqlStmt += `($${paramCnt++}, $${paramCnt++})`;
|
232
|
-
values.push(workflowUUID,
|
243
|
+
values.push(workflowUUID, utils_1.DBOSJSON.stringify(args));
|
233
244
|
batchUUIDs.push(workflowUUID);
|
234
245
|
if (batchUUIDs.length >= this.flushBatchSize) {
|
235
246
|
// Cap at the batch size.
|
@@ -263,22 +274,22 @@ class PostgresSystemDatabase {
|
|
263
274
|
if (rows.length === 0) {
|
264
275
|
return null;
|
265
276
|
}
|
266
|
-
return
|
277
|
+
return utils_1.DBOSJSON.parse(rows[0].inputs);
|
267
278
|
}
|
268
279
|
async checkOperationOutput(workflowUUID, functionID) {
|
269
280
|
const { rows } = await this.pool.query(`SELECT output, error FROM ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.operation_outputs WHERE workflow_uuid=$1 AND function_id=$2`, [workflowUUID, functionID]);
|
270
281
|
if (rows.length === 0) {
|
271
282
|
return dbos_executor_1.dbosNull;
|
272
283
|
}
|
273
|
-
else if (
|
274
|
-
throw (0, serialize_error_1.deserializeError)(
|
284
|
+
else if (utils_1.DBOSJSON.parse(rows[0].error) !== null) {
|
285
|
+
throw (0, serialize_error_1.deserializeError)(utils_1.DBOSJSON.parse(rows[0].error));
|
275
286
|
}
|
276
287
|
else {
|
277
|
-
return
|
288
|
+
return utils_1.DBOSJSON.parse(rows[0].output);
|
278
289
|
}
|
279
290
|
}
|
280
291
|
async recordOperationOutput(workflowUUID, functionID, output) {
|
281
|
-
const serialOutput =
|
292
|
+
const serialOutput = utils_1.DBOSJSON.stringify(output);
|
282
293
|
try {
|
283
294
|
await this.pool.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.operation_outputs (workflow_uuid, function_id, output) VALUES ($1, $2, $3);`, [workflowUUID, functionID, serialOutput]);
|
284
295
|
}
|
@@ -294,7 +305,7 @@ class PostgresSystemDatabase {
|
|
294
305
|
}
|
295
306
|
}
|
296
307
|
async recordOperationError(workflowUUID, functionID, error) {
|
297
|
-
const serialErr =
|
308
|
+
const serialErr = utils_1.DBOSJSON.stringify((0, serialize_error_1.serializeError)(error));
|
298
309
|
try {
|
299
310
|
await this.pool.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.operation_outputs (workflow_uuid, function_id, error) VALUES ($1, $2, $3);`, [workflowUUID, functionID, serialErr]);
|
300
311
|
}
|
@@ -314,7 +325,7 @@ class PostgresSystemDatabase {
|
|
314
325
|
*/
|
315
326
|
async recordNotificationOutput(client, workflowUUID, functionID, output) {
|
316
327
|
try {
|
317
|
-
await client.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.operation_outputs (workflow_uuid, function_id, output) VALUES ($1, $2, $3);`, [workflowUUID, functionID,
|
328
|
+
await client.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.operation_outputs (workflow_uuid, function_id, output) VALUES ($1, $2, $3);`, [workflowUUID, functionID, utils_1.DBOSJSON.stringify(output)]);
|
318
329
|
}
|
319
330
|
catch (error) {
|
320
331
|
await client.query("ROLLBACK");
|
@@ -332,13 +343,13 @@ class PostgresSystemDatabase {
|
|
332
343
|
async sleepms(workflowUUID, functionID, durationMS) {
|
333
344
|
const { rows } = await this.pool.query(`SELECT output FROM ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.operation_outputs WHERE workflow_uuid=$1 AND function_id=$2`, [workflowUUID, functionID]);
|
334
345
|
if (rows.length > 0) {
|
335
|
-
const endTimeMs =
|
346
|
+
const endTimeMs = utils_1.DBOSJSON.parse(rows[0].output);
|
336
347
|
await (0, utils_1.sleepms)(Math.max(endTimeMs - Date.now(), 0));
|
337
348
|
return;
|
338
349
|
}
|
339
350
|
else {
|
340
351
|
const endTimeMs = Date.now() + durationMS;
|
341
|
-
await this.pool.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.operation_outputs (workflow_uuid, function_id, output) VALUES ($1, $2, $3) ON CONFLICT DO NOTHING;`, [workflowUUID, functionID,
|
352
|
+
await this.pool.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.operation_outputs (workflow_uuid, function_id, output) VALUES ($1, $2, $3) ON CONFLICT DO NOTHING;`, [workflowUUID, functionID, utils_1.DBOSJSON.stringify(endTimeMs)]);
|
342
353
|
await (0, utils_1.sleepms)(Math.max(endTimeMs - Date.now(), 0));
|
343
354
|
return;
|
344
355
|
}
|
@@ -355,7 +366,7 @@ class PostgresSystemDatabase {
|
|
355
366
|
return;
|
356
367
|
}
|
357
368
|
try {
|
358
|
-
await client.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.notifications (destination_uuid, topic, message) VALUES ($1, $2, $3);`, [destinationUUID, topic,
|
369
|
+
await client.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.notifications (destination_uuid, topic, message) VALUES ($1, $2, $3);`, [destinationUUID, topic, utils_1.DBOSJSON.stringify(message)]);
|
359
370
|
}
|
360
371
|
catch (error) {
|
361
372
|
await client.query("ROLLBACK");
|
@@ -378,7 +389,7 @@ class PostgresSystemDatabase {
|
|
378
389
|
// First, check for previous executions.
|
379
390
|
const checkRows = (await this.pool.query(`SELECT output FROM ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.operation_outputs WHERE workflow_uuid=$1 AND function_id=$2`, [workflowUUID, functionID])).rows;
|
380
391
|
if (checkRows.length > 0) {
|
381
|
-
return
|
392
|
+
return utils_1.DBOSJSON.parse(checkRows[0].output);
|
382
393
|
}
|
383
394
|
// Then, register the key with the global notifications listener.
|
384
395
|
let resolveNotification;
|
@@ -420,7 +431,7 @@ class PostgresSystemDatabase {
|
|
420
431
|
RETURNING notifications.*;`, [workflowUUID, topic])).rows;
|
421
432
|
let message = null;
|
422
433
|
if (finalRecvRows.length > 0) {
|
423
|
-
message =
|
434
|
+
message = utils_1.DBOSJSON.parse(finalRecvRows[0].message);
|
424
435
|
}
|
425
436
|
await this.recordNotificationOutput(client, workflowUUID, functionID, message);
|
426
437
|
await client.query(`COMMIT`);
|
@@ -436,7 +447,7 @@ class PostgresSystemDatabase {
|
|
436
447
|
client.release();
|
437
448
|
return;
|
438
449
|
}
|
439
|
-
({ rows } = await client.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_events (workflow_uuid, key, value) VALUES ($1, $2, $3) ON CONFLICT (workflow_uuid, key) DO NOTHING RETURNING workflow_uuid;`, [workflowUUID, key,
|
450
|
+
({ rows } = await client.query(`INSERT INTO ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_events (workflow_uuid, key, value) VALUES ($1, $2, $3) ON CONFLICT (workflow_uuid, key) DO NOTHING RETURNING workflow_uuid;`, [workflowUUID, key, utils_1.DBOSJSON.stringify(message)]));
|
440
451
|
if (rows.length === 0) {
|
441
452
|
await client.query("ROLLBACK");
|
442
453
|
client.release();
|
@@ -451,7 +462,7 @@ class PostgresSystemDatabase {
|
|
451
462
|
if (callerUUID !== undefined && functionID !== undefined) {
|
452
463
|
const { rows } = await this.pool.query(`SELECT output FROM ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.operation_outputs WHERE workflow_uuid=$1 AND function_id=$2`, [callerUUID, functionID]);
|
453
464
|
if (rows.length > 0) {
|
454
|
-
return
|
465
|
+
return utils_1.DBOSJSON.parse(rows[0].output);
|
455
466
|
}
|
456
467
|
}
|
457
468
|
// Register the key with the global notifications listener.
|
@@ -476,13 +487,13 @@ class PostgresSystemDatabase {
|
|
476
487
|
// Return the value if it's in the DB, otherwise return null.
|
477
488
|
let value = null;
|
478
489
|
if (initRecvRows.length > 0) {
|
479
|
-
value =
|
490
|
+
value = utils_1.DBOSJSON.parse(initRecvRows[0].value);
|
480
491
|
}
|
481
492
|
else {
|
482
493
|
// Read it again from the database.
|
483
494
|
const finalRecvRows = (await this.pool.query(`SELECT value FROM ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_events WHERE workflow_uuid=$1 AND key=$2;`, [workflowUUID, key])).rows;
|
484
495
|
if (finalRecvRows.length > 0) {
|
485
|
-
value =
|
496
|
+
value = utils_1.DBOSJSON.parse(finalRecvRows[0].value);
|
486
497
|
}
|
487
498
|
}
|
488
499
|
// Record the output if it is inside a workflow.
|
@@ -496,7 +507,7 @@ class PostgresSystemDatabase {
|
|
496
507
|
if (callerUUID !== undefined && functionID !== undefined) {
|
497
508
|
const { rows } = await this.pool.query(`SELECT output FROM ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.operation_outputs WHERE workflow_uuid=$1 AND function_id=$2`, [callerUUID, functionID]);
|
498
509
|
if (rows.length > 0) {
|
499
|
-
return
|
510
|
+
return utils_1.DBOSJSON.parse(rows[0].output);
|
500
511
|
}
|
501
512
|
}
|
502
513
|
const { rows } = await this.pool.query(`SELECT status, name, class_name, config_name, authenticated_user, assumed_role, authenticated_roles, request FROM ${dbos_executor_1.DBOSExecutor.systemDBSchemaName}.workflow_status WHERE workflow_uuid=$1`, [workflowUUID]);
|
@@ -509,8 +520,8 @@ class PostgresSystemDatabase {
|
|
509
520
|
workflowConfigName: rows[0].config_name || "",
|
510
521
|
authenticatedUser: rows[0].authenticated_user,
|
511
522
|
assumedRole: rows[0].assumed_role,
|
512
|
-
authenticatedRoles:
|
513
|
-
request:
|
523
|
+
authenticatedRoles: utils_1.DBOSJSON.parse(rows[0].authenticated_roles),
|
524
|
+
request: utils_1.DBOSJSON.parse(rows[0].request),
|
514
525
|
};
|
515
526
|
}
|
516
527
|
// Record the output if it is inside a workflow.
|
@@ -527,10 +538,10 @@ class PostgresSystemDatabase {
|
|
527
538
|
if (rows.length > 0) {
|
528
539
|
const status = rows[0].status;
|
529
540
|
if (status === workflow_1.StatusString.SUCCESS) {
|
530
|
-
return
|
541
|
+
return utils_1.DBOSJSON.parse(rows[0].output);
|
531
542
|
}
|
532
543
|
else if (status === workflow_1.StatusString.ERROR) {
|
533
|
-
throw (0, serialize_error_1.deserializeError)(
|
544
|
+
throw (0, serialize_error_1.deserializeError)(utils_1.DBOSJSON.parse(rows[0].error));
|
534
545
|
}
|
535
546
|
}
|
536
547
|
await (0, utils_1.sleepms)(pollingIntervalMs);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"system_database.js","sourceRoot":"","sources":["../../src/system_database.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;AAEvD,qDAAmE;AACnE,mDAAmE;AACnE,2BAAuF;AACvF,mCAAmH;AACnH,yCAA0D;AAE1D,mCAA8E;AAG9E,gDAAwB;AACxB,gDAAwB;AA0DjB,KAAK,UAAU,qBAAqB,CAAC,gBAA4B;IACtE,MAAM,mBAAmB,GAAG,cAAI,CAAC,IAAI,CAAC,IAAA,uBAAe,EAAC,SAAS,CAAC,EAAE,YAAY,CAAC,CAAC;IAChF,MAAM,UAAU,GAAG;QACjB,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,gBAAgB;QAC5B,UAAU,EAAE;YACR,SAAS,EAAE,mBAAmB;YAC9B,SAAS,EAAE,iBAAiB;SAC/B;KACJ,CAAC;IACA,MAAM,MAAM,GAAG,IAAA,cAAI,EAAC,UAAU,CAAC,CAAA;IAC/B,MAAM,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,CAAA;IAC7B,MAAM,MAAM,CAAC,OAAO,EAAE,CAAA;AACxB,CAAC;AAbD,sDAaC;AAED,MAAa,sBAAsB;IAaZ;IAAmC;IAAq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AG,IAAI;IAS5D,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,kBAAkB,GAAG,UAAU,GAAG,IAAI;IAUtE,OAAO;CAGd;AAED,oBAAoB;AAEpB,oBAAoB;AAGpB,qBAAa,MAAM;IAEL,OAAO,CAAC,QAAQ,CAAC,YAAY;IAAgB,QAAQ,CAAC,GAAG,EAAE,eAAe;IADtF,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC;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"}
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Logger = exports.GlobalLogger = void 0;
|
4
4
|
const winston_1 = require("winston");
|
5
5
|
const TransportStream = require("winston-transport");
|
6
|
-
const applicationVersion_1 = require("../dbos-runtime/applicationVersion");
|
7
6
|
const api_logs_1 = require("@opentelemetry/api-logs");
|
8
7
|
const sdk_logs_1 = require("@opentelemetry/sdk-logs");
|
8
|
+
const utils_1 = require("../utils");
|
9
9
|
class GlobalLogger {
|
10
10
|
telemetryCollector;
|
11
11
|
logger;
|
@@ -31,7 +31,7 @@ class GlobalLogger {
|
|
31
31
|
this.logger.info(logEntry, metadata);
|
32
32
|
}
|
33
33
|
else {
|
34
|
-
this.logger.info(
|
34
|
+
this.logger.info(utils_1.DBOSJSON.stringify(logEntry), metadata);
|
35
35
|
}
|
36
36
|
}
|
37
37
|
debug(logEntry, metadata) {
|
@@ -39,7 +39,7 @@ class GlobalLogger {
|
|
39
39
|
this.logger.debug(logEntry, metadata);
|
40
40
|
}
|
41
41
|
else {
|
42
|
-
this.logger.debug(
|
42
|
+
this.logger.debug(utils_1.DBOSJSON.stringify(logEntry), metadata);
|
43
43
|
}
|
44
44
|
}
|
45
45
|
warn(logEntry, metadata) {
|
@@ -47,7 +47,7 @@ class GlobalLogger {
|
|
47
47
|
this.logger.warn(logEntry, metadata);
|
48
48
|
}
|
49
49
|
else {
|
50
|
-
this.logger.warn(
|
50
|
+
this.logger.warn(utils_1.DBOSJSON.stringify(logEntry), metadata);
|
51
51
|
}
|
52
52
|
}
|
53
53
|
// metadata can have both ContextualMetadata and the error stack trace
|
@@ -59,7 +59,7 @@ class GlobalLogger {
|
|
59
59
|
this.logger.error(inputError, { ...metadata, stack: new Error().stack });
|
60
60
|
}
|
61
61
|
else {
|
62
|
-
this.logger.error(
|
62
|
+
this.logger.error(utils_1.DBOSJSON.stringify(inputError), { ...metadata, stack: new Error().stack });
|
63
63
|
}
|
64
64
|
}
|
65
65
|
async destroy() {
|
@@ -103,13 +103,13 @@ exports.Logger = Logger;
|
|
103
103
|
const consoleFormat = winston_1.format.combine(winston_1.format.errors({ stack: true }), winston_1.format.timestamp(), winston_1.format.colorize(), winston_1.format.printf((info) => {
|
104
104
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
105
105
|
const { timestamp, level, message, stack } = info;
|
106
|
-
const applicationVersion =
|
106
|
+
const applicationVersion = process.env.DBOS__APPVERSION || "";
|
107
107
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-assignment
|
108
108
|
const ts = timestamp.slice(0, 19).replace("T", " ");
|
109
109
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-assignment
|
110
110
|
const formattedStack = stack?.split("\n").slice(1).join("\n");
|
111
|
-
const messageString = typeof message === "string" ? message :
|
112
|
-
const fullMessageString = `${messageString}${info.includeContextMetadata ? ` ${
|
111
|
+
const messageString = typeof message === "string" ? message : utils_1.DBOSJSON.stringify(message);
|
112
|
+
const fullMessageString = `${messageString}${info.includeContextMetadata ? ` ${utils_1.DBOSJSON.stringify(info.span?.attributes)}` : ""}`;
|
113
113
|
const versionString = applicationVersion ? ` [version ${applicationVersion}]` : "";
|
114
114
|
return `${ts}${versionString} [${level}]: ${fullMessageString} ${stack ? "\n" + formattedStack : ""}`;
|
115
115
|
}));
|
@@ -118,6 +118,7 @@ class OTLPLogQueueTransport extends TransportStream {
|
|
118
118
|
name = "OTLPLogQueueTransport";
|
119
119
|
otelLogger;
|
120
120
|
applicationID;
|
121
|
+
applicationVersion;
|
121
122
|
executorID;
|
122
123
|
constructor(telemetryCollector, logLevel) {
|
123
124
|
super();
|
@@ -126,8 +127,9 @@ class OTLPLogQueueTransport extends TransportStream {
|
|
126
127
|
// not sure if we need a more explicit name here
|
127
128
|
const loggerProvider = new sdk_logs_1.LoggerProvider();
|
128
129
|
this.otelLogger = loggerProvider.getLogger("default");
|
129
|
-
this.applicationID = process.env.DBOS__APPID || "
|
130
|
-
this.
|
130
|
+
this.applicationID = process.env.DBOS__APPID || "";
|
131
|
+
this.applicationVersion = process.env.DBOS__APPVERSION || "";
|
132
|
+
this.executorID = process.env.DBOS__VMID || "local";
|
131
133
|
const logRecordProcessor = {
|
132
134
|
forceFlush: async () => {
|
133
135
|
// no-op
|
@@ -171,6 +173,7 @@ class OTLPLogQueueTransport extends TransportStream {
|
|
171
173
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
172
174
|
stack,
|
173
175
|
applicationID: this.applicationID,
|
176
|
+
applicationVersion: this.applicationVersion,
|
174
177
|
executorID: this.executorID,
|
175
178
|
},
|
176
179
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../../src/telemetry/logs.ts"],"names":[],"mappings":";;;AAAA,qCAAqF;AACrF,qDAAsD;
|
1
|
+
{"version":3,"file":"logs.js","sourceRoot":"","sources":["../../../src/telemetry/logs.ts"],"names":[],"m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FAAoF;QACpF,oHAAoH;QACpH,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;YACnB,cAAc,EAAE,qBAAqB,CAAC,KAAe,CAAC;YACtD,YAAY,EAAE,KAAe;YAC7B,IAAI,EAAE,OAAiB;YACvB,SAAS,EAAE,WAAW,CAAC,GAAG,EAAE,EAAE,2EAA2E;YACzG,iBAAiB,EAAE,WAAW,CAAC,GAAG,EAAE;YACpC,UAAU,EAAE;gBACV,sEAAsE;gBACtE,GAAG,IAAI,EAAE,UAAU;gBACnB,kJAAkJ;gBAClJ,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,OAAO;gBACrC,kJAAkJ;gBAClJ,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,MAAM;gBACnC,mEAAmE;gBACnE,KAAK;gBACL,aAAa,EAAE,IAAI,CAAC,aAAa;gBACjC,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;gBAC3C,UAAU,EAAE,IAAI,CAAC,UAAU;aACX;SACnB,CAAC,CAAC;QAEH,QAAQ,EAAE,CAAC;IACb,CAAC;CACF"}
|
@@ -5,6 +5,7 @@ export declare class Tracer {
|
|
5
5
|
private readonly telemetryCollector;
|
6
6
|
private readonly tracer;
|
7
7
|
readonly applicationID: string;
|
8
|
+
readonly applicationVersion: string;
|
8
9
|
readonly executorID: string;
|
9
10
|
constructor(telemetryCollector: TelemetryCollector);
|
10
11
|
startSpanWithContext(spanContext: SpanContext, name: string, attributes?: Attributes): Span;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"traces.d.ts","sourceRoot":"","sources":["../../../src/telemetry/traces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAExF,OAAsB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,qBAAa,MAAM;
|
1
|
+
{"version":3,"file":"traces.d.ts","sourceRoot":"","sources":["../../../src/telemetry/traces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAExF,OAAsB,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE5E,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,qBAAa,MAAM;IAKL,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IAJ/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAsB;IAC7C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;gBACC,kBAAkB,EAAE,kBAAkB;IAYnE,oBAAoB,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,UAAU,GAAG,IAAI;IAM3F,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI;IAWzE,OAAO,CAAC,IAAI,EAAE,IAAI;CASnB"}
|
@@ -13,6 +13,7 @@ class Tracer {
|
|
13
13
|
telemetryCollector;
|
14
14
|
tracer;
|
15
15
|
applicationID;
|
16
|
+
applicationVersion;
|
16
17
|
executorID;
|
17
18
|
constructor(telemetryCollector) {
|
18
19
|
this.telemetryCollector = telemetryCollector;
|
@@ -22,8 +23,9 @@ class Tracer {
|
|
22
23
|
}),
|
23
24
|
});
|
24
25
|
this.tracer.register();
|
25
|
-
this.applicationID = process.env.DBOS__APPID || "
|
26
|
-
this.
|
26
|
+
this.applicationID = process.env.DBOS__APPID || "";
|
27
|
+
this.applicationVersion = process.env.DBOS__APPVERSION || "";
|
28
|
+
this.executorID = process.env.DBOS__VMID || "local"; // for consistency with src/context.ts
|
27
29
|
}
|
28
30
|
startSpanWithContext(spanContext, name, attributes) {
|
29
31
|
const tracer = api_1.default.trace.getTracer("dbos-tracer");
|
@@ -44,6 +46,7 @@ class Tracer {
|
|
44
46
|
endSpan(span) {
|
45
47
|
span.end((0, core_1.hrTime)(performance.now()));
|
46
48
|
span.attributes.applicationID = this.applicationID;
|
49
|
+
span.attributes.applicationVersion = this.applicationVersion;
|
47
50
|
if (!("executorID" in span.attributes)) {
|
48
51
|
span.attributes.executorID = this.executorID;
|
49
52
|
}
|