@dbos-inc/dbos-sdk 0.7.21-preview → 0.7.25-preview

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/dist/src/cloud-cli/applications/deploy-app-code.d.ts.map +1 -1
  2. package/dist/src/cloud-cli/applications/deploy-app-code.js +1 -0
  3. package/dist/src/cloud-cli/applications/deploy-app-code.js.map +1 -1
  4. package/dist/src/context.d.ts +1 -0
  5. package/dist/src/context.d.ts.map +1 -1
  6. package/dist/src/context.js.map +1 -1
  7. package/dist/src/dbos-executor.d.ts +6 -1
  8. package/dist/src/dbos-executor.d.ts.map +1 -1
  9. package/dist/src/dbos-executor.js +83 -24
  10. package/dist/src/dbos-executor.js.map +1 -1
  11. package/dist/src/dbos-runtime/cli.d.ts +1 -0
  12. package/dist/src/dbos-runtime/cli.d.ts.map +1 -1
  13. package/dist/src/dbos-runtime/cli.js +1 -0
  14. package/dist/src/dbos-runtime/cli.js.map +1 -1
  15. package/dist/src/dbos-runtime/config.d.ts.map +1 -1
  16. package/dist/src/dbos-runtime/config.js +1 -0
  17. package/dist/src/dbos-runtime/config.js.map +1 -1
  18. package/dist/src/debugger/debug_workflow.d.ts +38 -0
  19. package/dist/src/debugger/debug_workflow.d.ts.map +1 -0
  20. package/dist/src/debugger/debug_workflow.js +121 -0
  21. package/dist/src/debugger/debug_workflow.js.map +1 -0
  22. package/dist/src/error.d.ts +3 -0
  23. package/dist/src/error.d.ts.map +1 -1
  24. package/dist/src/error.js +8 -1
  25. package/dist/src/error.js.map +1 -1
  26. package/dist/src/httpServer/handler.d.ts +1 -0
  27. package/dist/src/httpServer/handler.d.ts.map +1 -1
  28. package/dist/src/httpServer/handler.js +13 -1
  29. package/dist/src/httpServer/handler.js.map +1 -1
  30. package/dist/src/httpServer/server.d.ts.map +1 -1
  31. package/dist/src/httpServer/server.js +2 -0
  32. package/dist/src/httpServer/server.js.map +1 -1
  33. package/dist/src/telemetry/collector.d.ts +2 -2
  34. package/dist/src/telemetry/collector.d.ts.map +1 -1
  35. package/dist/src/telemetry/collector.js.map +1 -1
  36. package/dist/src/telemetry/exporters.d.ts +5 -6
  37. package/dist/src/telemetry/exporters.d.ts.map +1 -1
  38. package/dist/src/telemetry/exporters.js +2 -42
  39. package/dist/src/telemetry/exporters.js.map +1 -1
  40. package/dist/src/telemetry/signals.d.ts +0 -10
  41. package/dist/src/telemetry/signals.d.ts.map +1 -1
  42. package/dist/src/telemetry/signals.js.map +1 -1
  43. package/dist/src/transaction.d.ts +2 -1
  44. package/dist/src/transaction.d.ts.map +1 -1
  45. package/dist/src/transaction.js.map +1 -1
  46. package/dist/src/workflow.d.ts +1 -1
  47. package/dist/src/workflow.d.ts.map +1 -1
  48. package/dist/src/workflow.js +2 -3
  49. package/dist/src/workflow.js.map +1 -1
  50. package/package.json +2 -2
  51. package/dist/src/provenance/provenance_daemon.d.ts +0 -34
  52. package/dist/src/provenance/provenance_daemon.d.ts.map +0 -1
  53. package/dist/src/provenance/provenance_daemon.js +0 -86
  54. package/dist/src/provenance/provenance_daemon.js.map +0 -1
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowContextDebug = void 0;
4
+ const transaction_1 = require("../transaction");
5
+ const error_1 = require("../error");
6
+ const serialize_error_1 = require("serialize-error");
7
+ const context_1 = require("../context");
8
+ const decorators_1 = require("../decorators");
9
+ /**
10
+ * Context used for debugging a workflow
11
+ */
12
+ class WorkflowContextDebug extends context_1.DBOSContextImpl {
13
+ workflowConfig;
14
+ functionID = 0;
15
+ #wfe;
16
+ isTempWorkflow;
17
+ constructor(wfe, parentCtx, workflowUUID, workflowConfig, workflowName) {
18
+ const span = wfe.tracer.startSpan(workflowName, { workflowUUID: workflowUUID }, parentCtx?.span);
19
+ super(workflowName, span, wfe.logger, parentCtx);
20
+ this.workflowConfig = workflowConfig;
21
+ this.workflowUUID = workflowUUID;
22
+ this.#wfe = wfe;
23
+ this.isTempWorkflow = wfe.tempWorkflowName === workflowName;
24
+ if (wfe.config.application) {
25
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
26
+ this.applicationConfig = wfe.config.application;
27
+ }
28
+ }
29
+ functionIDGetIncrement() {
30
+ return this.functionID++;
31
+ }
32
+ invoke(object) {
33
+ const ops = (0, decorators_1.getRegisteredOperations)(object);
34
+ const proxy = {};
35
+ for (const op of ops) {
36
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
37
+ proxy[op.name] = op.txnConfig
38
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
39
+ ? (...args) => this.transaction(op.registeredFunction, ...args)
40
+ : op.commConfig
41
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
42
+ ? (...args) => this.external(op.registeredFunction, ...args)
43
+ : undefined;
44
+ }
45
+ return proxy;
46
+ }
47
+ async checkExecution(client, funcID) {
48
+ // Note: we read the recorded snapshot and transaction ID!
49
+ const query = "SELECT output, error, txn_snapshot, txn_id FROM dbos.transaction_outputs WHERE workflow_uuid=$1 AND function_id=$2";
50
+ const rows = await this.#wfe.userDatabase.queryWithClient(client, query, this.workflowUUID, funcID);
51
+ if (rows.length === 0 || rows.length > 1) {
52
+ this.logger.error("Unexpected! This should never happen during debug. Returned rows: " + rows.toString());
53
+ throw new error_1.DBOSDebuggerError(`This should never happen during debug. Returned ${rows.length} rows: ` + rows.toString());
54
+ }
55
+ if (JSON.parse(rows[0].error) != null) {
56
+ throw (0, serialize_error_1.deserializeError)(JSON.parse(rows[0].error)); // We don't replay errors.
57
+ }
58
+ const res = {
59
+ output: JSON.parse(rows[0].output),
60
+ txn_snapshot: rows[0].txn_snapshot,
61
+ txn_id: rows[0].txn_id,
62
+ };
63
+ // Send a signal to the debug proxy.
64
+ // TODO: use the real one.
65
+ await this.#wfe.userDatabase.queryWithClient(client, `--proxy:${res.txn_id}`);
66
+ return res;
67
+ }
68
+ /**
69
+ * Execute a transactional function in debug mode.
70
+ * It connects to a debug proxy and everything should be read-only.
71
+ */
72
+ async transaction(txn, ...args) {
73
+ const config = this.#wfe.transactionConfigMap.get(txn.name);
74
+ if (config === undefined) {
75
+ throw new error_1.DBOSDebuggerError(`Transaction ${txn.name} not registered!`);
76
+ }
77
+ // const readOnly = true; // TODO: eventually, this transaction must be read-only.
78
+ const funcId = this.functionIDGetIncrement();
79
+ const span = this.#wfe.tracer.startSpan(txn.name, {}, this.span);
80
+ let check;
81
+ const wrappedTransaction = async (client) => {
82
+ // Original result must exist during replay.
83
+ const tCtxt = new transaction_1.TransactionContextImpl(this.#wfe.userDatabase.getName(), client, this, span, this.#wfe.logger, funcId, txn.name);
84
+ check = await this.checkExecution(client, funcId);
85
+ // Execute the user's transaction.
86
+ const result = await txn(tCtxt, ...args);
87
+ return result;
88
+ };
89
+ const result = await this.#wfe.userDatabase.transaction(wrappedTransaction, config);
90
+ if (JSON.stringify(check.output) !== JSON.stringify(result)) {
91
+ this.logger.error(`Detected different transaction output than the original one!\n Expected: ${JSON.stringify(result)}\n Received: ${JSON.stringify(check.output)}`);
92
+ }
93
+ return check.output; // Always return the recorded result.
94
+ }
95
+ external(commFn, ...args) {
96
+ throw new Error("Method not implemented");
97
+ }
98
+ // Invoke the debugWorkflow() function instead.
99
+ async childWorkflow(wf, ...args) {
100
+ const funcId = this.functionIDGetIncrement();
101
+ const childUUID = this.workflowUUID + "-" + funcId;
102
+ return this.#wfe.debugWorkflow(wf, { parentCtx: this, workflowUUID: childUUID }, this.workflowUUID, funcId, ...args);
103
+ }
104
+ send(destinationUUID, message, topic) {
105
+ throw new Error("Method not implemented.");
106
+ }
107
+ recv(topic, timeoutSeconds) {
108
+ throw new Error("Method not implemented.");
109
+ }
110
+ setEvent(key, value) {
111
+ throw new Error("Method not implemented.");
112
+ }
113
+ getEvent(workflowUUID, key, timeoutSeconds) {
114
+ throw new Error("Method not implemented.");
115
+ }
116
+ retrieveWorkflow(workflowUUID) {
117
+ throw new Error("Method not implemented.");
118
+ }
119
+ }
120
+ exports.WorkflowContextDebug = WorkflowContextDebug;
121
+ //# sourceMappingURL=debug_workflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug_workflow.js","sourceRoot":"","sources":["../../../src/debugger/debug_workflow.ts"],"names":[],"mappings":";;;AAIA,gDAAyG;AAEzG,oCAA+G;AAC/G,qDAAmE;AAKnE,wCAAuE;AACvE,8CAAwD;AASxD;;GAEG;AACH,MAAa,oBAAqB,SAAQ,yBAAe;IAK+C;IAJtG,UAAU,GAAW,CAAC,CAAC;IACd,IAAI,CAAC;IACL,cAAc,CAAU;IAEjC,YAAY,GAAiB,EAAE,SAAsC,EAAE,YAAoB,EAAW,cAA8B,EAAE,YAAoB;QACxJ,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;QACjG,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAFmD,mBAAc,GAAd,cAAc,CAAgB;QAGlI,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,cAAc,GAAG,GAAG,CAAC,gBAAgB,KAAK,YAAY,CAAC;QAC5D,IAAI,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE;YAC1B,mEAAmE;YACnE,IAAI,CAAC,iBAAiB,GAAG,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC;SACjD;IACH,CAAC;IAED,sBAAsB;QACpB,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;IAED,MAAM,CAAmB,MAAS;QAChC,MAAM,GAAG,GAAG,IAAA,oCAAuB,EAAC,MAAM,CAAC,CAAC;QAE5C,MAAM,KAAK,GAAQ,EAAE,CAAC;QACtB,KAAK,MAAM,EAAE,IAAI,GAAG,EAAE;YACpB,sEAAsE;YACtE,KAAK,CAAC,EAAE,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AC7C,CAAC;IACD,IAAI,CAA6B,KAA0B,EAAE,cAAmC;QAC9F,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,QAAQ,CAA6B,GAAW,EAAE,KAAQ;QACxD,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,QAAQ,CAA6B,YAAoB,EAAE,GAAW,EAAE,cAAmC;QACzG,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,gBAAgB,CAAI,YAAoB;QACtC,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;CACF;AAlID,oDAkIC"}
@@ -41,4 +41,7 @@ export declare class DBOSUndefinedDecoratorInputError extends DBOSError {
41
41
  export declare class DBOSConfigKeyTypeError extends DBOSError {
42
42
  constructor(configKey: string, expectedType: string, actualType: string);
43
43
  }
44
+ export declare class DBOSDebuggerError extends DBOSError {
45
+ constructor(msg: string);
46
+ }
44
47
  //# sourceMappingURL=error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/error.ts"],"names":[],"mappings":"AAqDA,wBAAgB,aAAa,CAAC,aAAa,EAAE,MAAM,WAElD;AAED,qBAAa,SAAU,SAAQ,KAAK;IAET,QAAQ,CAAC,aAAa,EAAE,MAAM;gBAA3C,GAAG,EAAE,MAAM,EAAW,aAAa,GAAE,MAAU;CAG5D;AAGD,qBAAa,iCAAkC,SAAQ,SAAS;gBAClD,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM;CAIhD;AAGD,qBAAa,uBAAwB,SAAQ,SAAS;gBACxC,GAAG,EAAE,MAAM;CAGxB;AAGD,qBAAa,8BAA+B,SAAQ,SAAS;gBAC/C,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAI7F;AAGD,q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AAS;gBAC/C,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAI7F;AAGD,qBAAa,6BAA8B,SAAQ,SAAS;gBAC9C,YAAY,EAAE,MAAM;CAGjC;AAGD,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,IAAI,EAAE,MAAM;CAIzB;AAGD,qBAAa,yBAA0B,SAAQ,SAAS;gBAC1C,GAAG,EAAE,KAAK;CAOvB;AAGD,qBAAa,uBAAwB,SAAQ,SAAS;gBACxC,GAAG,EAAE,MAAM;CAGxB;AAGD,qBAAa,2BAA4B,SAAQ,SAAS;gBAC5C,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;CAG9C;AAID,qBAAa,iBAAkB,SAAQ,SAAS;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM;gBAApC,GAAG,EAAE,MAAM,EAAW,MAAM,GAAE,MAAY;CAGvD;AAGD,qBAAa,sBAAuB,SAAQ,SAAS;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM;gBAApC,GAAG,EAAE,MAAM,EAAW,MAAM,GAAE,MAAY;CAGvD;AAGD,qBAAa,gCAAiC,SAAQ,SAAS;gBACjD,aAAa,EAAE,MAAM;CAGlC;AAGD,qBAAa,sBAAuB,SAAQ,SAAS;gBACvC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;CAGxE;AAGD,qBAAa,iBAAkB,SAAQ,SAAS;gBAClC,GAAG,EAAE,MAAM;CAGxB"}
package/dist/src/error.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DBOSConfigKeyTypeError = exports.DBOSUndefinedDecoratorInputError = exports.DBOSNotAuthorizedError = exports.DBOSResponseError = exports.DuplicateWorkflowEventError = exports.DBOSDataValidationError = exports.DBOSPostgresExporterError = exports.DBOSNotRegisteredError = exports.DBOSWorkflowConflictUUIDError = exports.DBOSTopicPermissionDeniedError = exports.DBOSInitializationError = exports.DBOSWorkflowPermissionDeniedError = exports.DBOSError = exports.isClientError = void 0;
3
+ exports.DBOSDebuggerError = exports.DBOSConfigKeyTypeError = exports.DBOSUndefinedDecoratorInputError = exports.DBOSNotAuthorizedError = exports.DBOSResponseError = exports.DuplicateWorkflowEventError = exports.DBOSDataValidationError = exports.DBOSPostgresExporterError = exports.DBOSNotRegisteredError = exports.DBOSWorkflowConflictUUIDError = exports.DBOSTopicPermissionDeniedError = exports.DBOSInitializationError = exports.DBOSWorkflowPermissionDeniedError = exports.DBOSError = exports.isClientError = void 0;
4
4
  const pg_1 = require("pg");
5
5
  function formatPgDatabaseError(err) {
6
6
  let msg = "";
@@ -161,4 +161,11 @@ class DBOSConfigKeyTypeError extends DBOSError {
161
161
  }
162
162
  }
163
163
  exports.DBOSConfigKeyTypeError = DBOSConfigKeyTypeError;
164
+ const DebuggerError = 15;
165
+ class DBOSDebuggerError extends DBOSError {
166
+ constructor(msg) {
167
+ super("DEBUGGER: " + msg, DebuggerError);
168
+ }
169
+ }
170
+ exports.DBOSDebuggerError = DBOSDebuggerError;
164
171
  //# sourceMappingURL=error.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"error.js","sourceRoot":"","sources":["../../src/error.ts"],"names":[],"mappings":";;;AAAA,2BAAmC;AAEnC,SAAS,qBAAqB,CAAC,GAAkB;IAC/C,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,IAAI,GAAG,CAAC,QAAQ,EAAE;QAChB,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,aAAa,GAAG,CAAC,QAAQ,KAAK,CAAC,CAAC;KAClD;IACD,IAAI,GAAG,CAAC,IAAI,EAAE;QACZ,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,GAAG,CAAC,IAAI,KAAK,CAAC,CAAC;KAC1C;IACD,IAAI,GAAG,CAAC,MAAM,EAAE;QACd,GAAG,GAAG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AK,CAAC,GAAG,aAAa,0DAA0D,EAAE,4BAA4B,CAAC,CAAC;IAClH,CAAC;CACF;AAJD,4EAIC;AAED,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAa,sBAAuB,SAAQ,SAAS;IACnD,YAAY,SAAiB,EAAE,YAAoB,EAAE,UAAkB;QACrE,KAAK,CAAC,GAAG,SAAS,sBAAsB,YAAY,aAAa,UAAU,EAAE,EAAE,kBAAkB,CAAC,CAAC;IACrG,CAAC;CACF;AAJD,wDAIC;AAED,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAa,iBAAkB,SAAQ,SAAS;IAC9C,YAAY,GAAW;QACrB,KAAK,CAAC,YAAY,GAAG,GAAG,EAAE,aAAa,CAAC,CAAC;IAC3C,CAAC;CACF;AAJD,8CAIC"}
@@ -16,6 +16,7 @@ export interface HandlerContext extends DBOSContext {
16
16
  send<T extends NonNullable<any>>(destinationUUID: string, message: T, topic?: string, idempotencyKey?: string): Promise<void>;
17
17
  getEvent<T extends NonNullable<any>>(workflowUUID: string, key: string, timeoutSeconds?: number): Promise<T | null>;
18
18
  }
19
+ export declare const RequestIDHeader = "x-request-id";
19
20
  export declare class HandlerContextImpl extends DBOSContextImpl implements HandlerContext {
20
21
  #private;
21
22
  readonly koaContext: Koa.Context;
@@ -1 +1 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../src/httpServer/handler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAA8D,sBAAsB,EAA2B,MAAM,eAAe,CAAC;AACjL,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAY,cAAc,EAAE,cAAc,EAAkB,eAAe,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEvH,OAAO,EAAE,yBA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AE,MAAM,CAAC;IACnH,OAAO,EAAE,QAAQ,CAAgB;IACjC,MAAM,EAAE,MAAM,CAAM;IAEpB,IAAI,EAAE,gBAAgB,EAAE,CAAM;gBAClB,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC;CAGrE;AAED,qBAAa,gBAAiB,SAAQ,eAAe;IACnD,SAAS,EAAE,UAAU,CAAsB;gBAG/B,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ;CAGtC;AAMD,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,2EAEtB,MAAM,eACD,MAAM,wLAWtB;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,2EAEvB,MAAM,eACD,MAAM,wLAWtB;AAMD,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,YACjB,MAAM,eAAe,MAAM,GAAG,MAAM,kBAAkB,MAAM,UAMtF"}
@@ -1,12 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ArgSource = exports.PostApi = exports.GetApi = exports.HandlerParameter = exports.HandlerRegistration = exports.ArgSources = exports.APITypes = exports.HandlerContextImpl = void 0;
3
+ exports.ArgSource = exports.PostApi = exports.GetApi = exports.HandlerParameter = exports.HandlerRegistration = exports.ArgSources = exports.APITypes = exports.HandlerContextImpl = exports.RequestIDHeader = void 0;
4
4
  /* eslint-disable @typescript-eslint/no-explicit-any */
5
5
  const decorators_1 = require("../decorators");
6
6
  const dbos_executor_1 = require("../dbos-executor");
7
7
  const context_1 = require("../context");
8
8
  const core_1 = require("@opentelemetry/core");
9
9
  const api_1 = require("@opentelemetry/api");
10
+ const uuid_1 = require("uuid");
11
+ exports.RequestIDHeader = "x-request-id";
12
+ function getOrGenerateRequestID(ctx) {
13
+ const reqID = ctx.get(exports.RequestIDHeader);
14
+ if (reqID) {
15
+ return reqID;
16
+ }
17
+ const newID = (0, uuid_1.v4)();
18
+ ctx.set(exports.RequestIDHeader, newID);
19
+ return newID;
20
+ }
10
21
  class HandlerContextImpl extends context_1.DBOSContextImpl {
11
22
  koaContext;
12
23
  #wfe;
@@ -41,6 +52,7 @@ class HandlerContextImpl extends context_1.DBOSContextImpl {
41
52
  querystring: koaContext.request.querystring,
42
53
  url: koaContext.request.url,
43
54
  ip: koaContext.request.ip,
55
+ requestID: getOrGenerateRequestID(koaContext),
44
56
  };
45
57
  if (wfe.config.application) {
46
58
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
@@ -1 +1 @@
1
- {"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../src/httpServer/handler.ts"],"names":[],"mappings":";;;AAAA,uDAAuD;AACvD,8CAAiL;AACjL,oDAAgD;AAChD,wCAA0D;AAI1D,8CAAgE;AAChE,4CAA+E;AAoB/E,MAAa,kBAAmB,SAAQ,yBAAe;IAIb;IAH/B,IAAI,CAAe;IACnB,yBAAyB,CAA4B;IAE9D,YAAY,GAAiB,EAAW,UAAuB;QAC7D,0DAA0D;QAC1D,MAAM,UAAU,GAAG,IAAI,gCAAyB,EAAE,CAAC;QACnD,MAAM,oBAAoB,GAAG,WAAK,CAAC,cAAc,CAC7C,UAAU,CAAC,OAAO,CAAC,kBAAY,EAAE,UAAU,CAAC,OAAO,CAAC,OAAO,EAAE,0BAAoB,CAAC,CACrF,CAAA;QACD,IAAI,IAAU,CAAC;QACf,MAAM,cAAc,GAAG;YACrB,aAAa,EAAE,UAAU,CAAC,GAAG;SAC9B,CAAC;QACF,IAAI,oBAAoB,KAAK,SAAS,EAAE;YACtC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;SAC7D;aAAM;YACL,oBAAoB,CAAC,QAAQ,GAAG,IAAI,CAAC;YACrC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,oBAAoB,CAAC,oBAAoB,EAAE,UAAU,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AG,kBAAkB,CAAC,cAAc,CAAqB,CAAC;QACxE,QAAQ,CAAC,SAAS,GAAG,MAAM,CAAC;IAC9B,CAAC,CAAC;AACJ,CAAC;AAPD,8BAOC"}
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/httpServer/server.ts"],"names":[],"mappings":";;;;AAAA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,MAAM,MAAM,aAAa,CAAC;AAiBjC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAKjC,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,mBAAmB,4BAA4B,CAAA;AAE5D,qBAAa,cAAc;IAUb,QAAQ,CAAC,QAAQ,EAAE,YAAY;IAT3C,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;;OAIG;gBACkB,QAAQ,EAAE,YAAY,EAAE,MAAM,GAAE;QAAE,GAAG,CAAC,EAAE,GAAG,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAO;IAuBxF;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM;IAOnB;;;OAGG;IACH,MAAM,CAAC,wBAAwB,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;IAmBjE;;OAEG;IACH,MAAM,CAAC,0BAA0B,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;CAsKpE"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/httpServer/server.ts"],"names":[],"mappings":";;;;AAAA,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,MAAM,MAAM,aAAa,CAAC;AAkBjC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAKjC,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,mBAAmB,4BAA4B,CAAA;AAE5D,qBAAa,cAAc;IAUb,QAAQ,CAAC,QAAQ,EAAE,YAAY;IAT3C,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;;OAIG;gBACkB,QAAQ,EAAE,YAAY,EAAE,MAAM,GAAE;QAAE,GAAG,CAAC,EAAE,GAAG,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAO;IAuBxF;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM;IAOnB;;;OAGG;IACH,MAAM,CAAC,wBAAwB,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;IAmBjE;;OAEG;IACH,MAAM,CAAC,0BAA0B,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM;CAwKpE"}
@@ -211,6 +211,8 @@ class DBOSHttpServer {
211
211
  },
212
212
  });
213
213
  wfe.tracer.endSpan(oc.span);
214
+ // Add requestID to response headers.
215
+ koaCtxt.set(handler_1.RequestIDHeader, oc.request.requestID);
214
216
  await koaNext();
215
217
  }
216
218
  };
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/httpServer/server.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsB;AACtB,yDAAiC;AACjC,gDAA6C;AAC7C,qDAA6B;AAC7B,uCAKmB;AAGnB,oCAKkB;AAIlB,4CAAyE;AAG5D,QAAA,kBAAkB,GAAG,mBAAmB,CAAC;AACzC,QAAA,mBAAmB,GAAG,yBAAyB,CAAA;AAE5D,MAAa,cAAc;IAUJ;IATZ,GAAG,CAAM;IACT,MAAM,CAAS;IACf,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AC,OAAO,CAAC,SAAmB,CAAC,CAAC;wBAC7D,MAAM,OAAO,EAAE,CAAC;qBACjB;gBACH,CAAC,CAAC;gBAEF,kCAAkC;gBAClC,IAAI,EAAE,CAAC,OAAO,KAAK,kBAAQ,CAAC,GAAG,EAAE;oBAC/B,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;oBACtC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,8BAA8B,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;iBAC7D;qBAAM,IAAI,EAAE,CAAC,OAAO,KAAK,kBAAQ,CAAC,IAAI,EAAE;oBACvC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;oBACvC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;iBAC9D;aACF;QACH,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA9OD,wCA8OC"}
@@ -1,6 +1,6 @@
1
1
  import { MethodRegistrationBase } from "../decorators";
2
2
  import { ITelemetryExporter } from "./exporters";
3
- import { DBOSSignal } from "./signals";
3
+ import { TelemetrySignal } from "./signals";
4
4
  export declare class TelemetryCollector {
5
5
  readonly exporters: ITelemetryExporter<any, any>[];
6
6
  private readonly signals;
@@ -10,7 +10,7 @@ export declare class TelemetryCollector {
10
10
  constructor(exporters: ITelemetryExporter<any, any>[]);
11
11
  init(registeredOperations?: Array<MethodRegistrationBase>): Promise<void>;
12
12
  destroy(): Promise<void>;
13
- push(signal: DBOSSignal): void;
13
+ push(signal: TelemetrySignal): void;
14
14
  private pop;
15
15
  processAndExportSignals(): Promise<void>;
16
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../../src/telemetry/collector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,E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I,CAAC,MAAuB;QAC1B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAEO,GAAG;QACT,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;IAC5B,CAAC;IAED,KAAK,CAAC,uBAAuB;QAC3B,MAAM,KAAK,GAAsB,EAAE,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,mCAAmC,EAAE;YACzF,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;YAC1B,IAAI,CAAC,MAAM,EAAE;gBACX,MAAM;aACP;YACD,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACpB;QACD,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YACpB,MAAM,OAAO,GAAG,EAAE,CAAC;YACnB,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE;gBACrC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;aACtC;YACD,IAAI;gBACF,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;aAC5B;YAAC,OAAO,CAAC,EAAE;gBACV,OAAO,CAAC,KAAK,CAAE,CAAW,CAAC,OAAO,CAAC,CAAC;aACrC;SACF;IACH,CAAC;CACF;AA7DD,gDA6DC"}
@@ -1,9 +1,9 @@
1
1
  import { Client, QueryConfig, QueryArrayResult, PoolConfig } from "pg";
2
2
  import { DBOSDataType, MethodRegistrationBase } from "./../decorators";
3
- import { DBOSSignal, ProvenanceSignal, TelemetrySignal } from "./signals";
3
+ import { TelemetrySignal } from "./signals";
4
4
  export interface ITelemetryExporter<T, U> {
5
- export(signal: DBOSSignal[]): Promise<T>;
6
- process?(signal: DBOSSignal[]): U;
5
+ export(signal: TelemetrySignal[]): Promise<T>;
6
+ process?(signal: TelemetrySignal[]): U;
7
7
  init?(registeredOperations?: ReadonlyArray<MethodRegistrationBase>): Promise<void>;
8
8
  destroy?(): Promise<void>;
9
9
  }
@@ -11,7 +11,7 @@ export declare const JAEGER_EXPORTER = "JaegerExporter";
11
11
  export declare class JaegerExporter implements ITelemetryExporter<void, undefined> {
12
12
  private readonly exporter;
13
13
  constructor(endpoint?: string);
14
- export(rawSignals: DBOSSignal[]): Promise<void>;
14
+ export(signals: TelemetrySignal[]): Promise<void>;
15
15
  }
16
16
  export declare const POSTGRES_EXPORTER = "PostgresExporter";
17
17
  export declare class PostgresExporter implements ITelemetryExporter<QueryArrayResult[], QueryConfig[]> {
@@ -23,7 +23,6 @@ export declare class PostgresExporter implements ITelemetryExporter<QueryArrayRe
23
23
  init(registeredOperations?: ReadonlyArray<MethodRegistrationBase>): Promise<void>;
24
24
  destroy(): Promise<void>;
25
25
  process(signals: TelemetrySignal[]): QueryConfig[];
26
- processProvenance(signals: ProvenanceSignal[]): QueryConfig;
27
- export(signals: DBOSSignal[]): Promise<QueryArrayResult[]>;
26
+ export(telemetrySignals: TelemetrySignal[]): Promise<QueryArrayResult[]>;
28
27
  }
29
28
  //# sourceMappingURL=exporters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exporters.d.ts","sourceRoot":"","sources":["../../../src/telemetry/exporters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAEvE,OAAO,EAAY,YAAY,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEjF,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM1E,MAAM,WAAW,kBAAkB,CAAC,CAAC,EAAE,CAAC;IACtC,MAAM,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACzC,OAAO,CAAC,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B,CAAM;IA2CrE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B,OAAO,CAAC,OAAO,EAAE,eAAe,EAAE,GAAG,WAAW,EAAE;IAkC5C,MAAM,CAAC,gBAAgB,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAiB/E"}
@@ -16,9 +16,7 @@ class JaegerExporter {
16
16
  url: endpoint,
17
17
  });
18
18
  }
19
- async export(rawSignals) {
20
- // Note: it is not compatible with provenance signal.
21
- const signals = rawSignals;
19
+ async export(signals) {
22
20
  return await new Promise((resolve) => {
23
21
  const exportSpans = [];
24
22
  signals.forEach((signal) => {
@@ -93,18 +91,7 @@ class PostgresExporter {
93
91
  // Trim last comma and line feed
94
92
  createSignalTableQuery = createSignalTableQuery.slice(0, -2).concat("\n);");
95
93
  await this.pgClient.query(createSignalTableQuery);
96
- // Create a table for provenance logs.
97
- // TODO: create a secondary index.
98
94
  }
99
- await this.pgClient.query(`CREATE TABLE IF NOT EXISTS provenance_logs (
100
- transaction_id TEXT NOT NULL,
101
- kind TEXT,
102
- schema_name TEXT,
103
- table_name TEXT,
104
- columnnames TEXT,
105
- columntypes TEXT,
106
- columnvalues TEXT
107
- );`);
108
95
  }
109
96
  async destroy() {
110
97
  await this.pgClient.end();
@@ -137,42 +124,15 @@ class PostgresExporter {
137
124
  }
138
125
  return queries;
139
126
  }
140
- processProvenance(signals) {
141
- const query = `
142
- INSERT INTO provenance_logs
143
- SELECT * FROM jsonb_to_recordset($1::jsonb) AS tmp (
144
- transaction_id text, kind text, schema_name text, table_name text,
145
- columnnames text, columntypes text, columnvalues text);
146
- `;
147
- const values = JSON.stringify(signals.map((signal) => {
148
- return {
149
- transaction_id: signal.provTransactionID,
150
- kind: signal.kind,
151
- schema_name: signal.schema,
152
- table_name: signal.table,
153
- columnnames: signal.columnnames,
154
- columntypes: signal.columntypes,
155
- columnvalues: signal.columnvalues
156
- };
157
- }));
158
- return { name: `insert-provenance-log`, text: query, values: [values] };
159
- }
160
- async export(signals) {
127
+ async export(telemetrySignals) {
161
128
  const results = [];
162
129
  // Find all telemetry signals and process.
163
- const telemetrySignals = signals.filter(obj => obj.workflowUUID !== undefined);
164
130
  if (telemetrySignals.length > 0) {
165
131
  const queries = this.process(telemetrySignals);
166
132
  for (const query of queries) {
167
133
  results.push(this.pgClient.query(query));
168
134
  }
169
135
  }
170
- // Find all provenance signals and process.
171
- const provenanceSignals = signals.filter((obj) => obj.provTransactionID !== undefined);
172
- if (provenanceSignals.length > 0) {
173
- const provQuery = this.processProvenance(provenanceSignals);
174
- results.push(this.pgClient.query(provQuery));
175
- }
176
136
  try {
177
137
  // We do await here so we can catch and format PostgresExporter specific errors
178
138
  return await Promise.all(results);
@@ -1 +1 @@
1
- {"version":3,"file":"exporters.js","sourceRoot":"","sources":["../../../src/telemetry/exporters.ts"],"names":[],"mappings":";;;AAAA,2BAAuE;AACvE,mCAAiC;AACjC,gDAAiF;AACjF,sCAAuD;AAEvD,sFAA4E;AAE5E,8CAAqE;AACrE,qCAAwC;AAS3B,QAAA,eAAe,GAAG,gBAAgB,CAAC;AAChD,MAAa,cAAc;IACR,QAAQ,CAAoB;IAC7C,YAAY,WAAmB,iCAAiC;QAC9D,IAAI,CAAC,QAAQ,GAAG,IAAI,4CAAiB,CAAC;YACpC,GAAG,EAAE,QAAQ;SACd,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,UAAwB;QACnC,qDAAqD;QACrD,MAAM,OAAO,GAAG,UAA+B,CAAC;QAChD,OAAO,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;YACzC,MAAM,WAAW,GAAmB,EAAE,CAAC;YACvC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;gBACzB,IAAI,MAAM,CAAC,SAAS,EAAE;oBACpB,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;iBACpC;YACH,CAAC,CAAC,CAAC;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AC/C,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE;gBAC3B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;aAC1C;SACF;QAED,IAAI;YACF,+EAA+E;YAC/E,OAAO,MAAM,OAAO,CAAC,GAAG,CAAmB,OAAO,CAAC,CAAC;SACrD;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,IAAI,iCAAyB,CAAC,GAAY,CAAC,CAAC;SACnD;IACH,CAAC;CACF;AAlHD,4CAkHC"}
@@ -1,6 +1,5 @@
1
1
  import { ReadableSpan } from "@opentelemetry/sdk-trace-base";
2
2
  import { ValuesOf } from "../utils";
3
- export type DBOSSignal = TelemetrySignal | ProvenanceSignal;
4
3
  export declare const LogSeverity: {
5
4
  readonly Debug: "DEBUG";
6
5
  readonly Info: "INFO";
@@ -18,13 +17,4 @@ export interface TelemetrySignal {
18
17
  traceID?: string;
19
18
  traceSpan?: ReadableSpan;
20
19
  }
21
- export interface ProvenanceSignal {
22
- provTransactionID: string;
23
- kind: string;
24
- schema: string;
25
- table: string;
26
- columnnames: string[];
27
- columntypes: string[];
28
- columnvalues: string[];
29
- }
30
20
  //# sourceMappingURL=signals.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../../src/telemetry/signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,gBAAgB,CAAC;AAE5D,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B;AAED,MAAM,WAAW,gBAAgB;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB"}
1
+ {"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../../src/telemetry/signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"signals.js","sourceRoot":"","sources":["../../../src/telemetry/signals.ts"],"names":[],"mappings":";;;AAKa,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;CACF,CAAC"}
1
+ {"version":3,"file":"signals.js","sourceRoot":"","sources":["../../../src/telemetry/signals.ts"],"names":[],"mappings":";;;AAGa,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;CACF,CAAC"}
@@ -4,6 +4,7 @@ import { Span } from "@opentelemetry/sdk-trace-base";
4
4
  import { DBOSContext, DBOSContextImpl } from "./context";
5
5
  import { ValuesOf } from "./utils";
6
6
  import { WinstonLogger as Logger } from "./telemetry/logs";
7
+ import { WorkflowContextDebug } from "./debugger/debug_workflow";
7
8
  export type Transaction<T extends any[], R> = (ctxt: TransactionContext<any>, ...args: T) => Promise<R>;
8
9
  export interface TransactionConfig {
9
10
  isolationLevel?: IsolationLevel;
@@ -23,6 +24,6 @@ export declare class TransactionContextImpl<T extends UserDatabaseClient> extend
23
24
  readonly clientKind: UserDatabaseName;
24
25
  readonly client: T;
25
26
  readonly functionID: number;
26
- constructor(clientKind: UserDatabaseName, client: T, workflowContext: WorkflowContextImpl, span: Span, logger: Logger, functionID: number, operationName: string);
27
+ constructor(clientKind: UserDatabaseName, client: T, workflowContext: WorkflowContextImpl | WorkflowContextDebug, span: Span, logger: Logger, functionID: number, operationName: string);
27
28
  }
28
29
  //# sourceMappingURL=transaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../src/transaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,aA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G,eAAe,CAAC,iBAAiB,CAAC;SAC5D;IACH,CAAC;CACF;AAhBD,wDAgBC"}
@@ -56,7 +56,7 @@ export declare class WorkflowContextImpl extends DBOSContextImpl implements Work
56
56
  functionIDGetIncrement(): number;
57
57
  /**
58
58
  * Check if an operation has already executed in a workflow.
59
- * If it previously executed succesfully, return its output.
59
+ * If it previously executed successfully, return its output.
60
60
  * If it previously executed and threw an error, throw that error.
61
61
  * Otherwise, return DBOSNull.
62
62
  * Also return the transaction snapshot information of this current transaction.