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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. package/dist/src/cloud-cli/applications/configure.d.ts.map +1 -1
  2. package/dist/src/cloud-cli/applications/configure.js +12 -2
  3. package/dist/src/cloud-cli/applications/configure.js.map +1 -1
  4. package/dist/src/cloud-cli/applications/delete-app.js +1 -1
  5. package/dist/src/cloud-cli/applications/delete-app.js.map +1 -1
  6. package/dist/src/cloud-cli/applications/deploy-app-code.d.ts.map +1 -1
  7. package/dist/src/cloud-cli/applications/deploy-app-code.js +10 -2
  8. package/dist/src/cloud-cli/applications/deploy-app-code.js.map +1 -1
  9. package/dist/src/cloud-cli/applications/get-app-logs.js +1 -1
  10. package/dist/src/cloud-cli/applications/get-app-logs.js.map +1 -1
  11. package/dist/src/cloud-cli/applications/list-apps.js +1 -1
  12. package/dist/src/cloud-cli/applications/list-apps.js.map +1 -1
  13. package/dist/src/cloud-cli/applications/register-app.js +1 -1
  14. package/dist/src/cloud-cli/applications/register-app.js.map +1 -1
  15. package/dist/src/cloud-cli/applications/update-app.d.ts.map +1 -1
  16. package/dist/src/cloud-cli/applications/update-app.js +3 -2
  17. package/dist/src/cloud-cli/applications/update-app.js.map +1 -1
  18. package/dist/src/cloud-cli/cli.js +19 -7
  19. package/dist/src/cloud-cli/cli.js.map +1 -1
  20. package/dist/src/cloud-cli/login.d.ts.map +1 -1
  21. package/dist/src/cloud-cli/login.js +3 -2
  22. package/dist/src/cloud-cli/login.js.map +1 -1
  23. package/dist/src/cloud-cli/register.js +1 -1
  24. package/dist/src/cloud-cli/register.js.map +1 -1
  25. package/dist/src/cloud-cli/userdb.d.ts +2 -0
  26. package/dist/src/cloud-cli/userdb.d.ts.map +1 -1
  27. package/dist/src/cloud-cli/userdb.js +102 -8
  28. package/dist/src/cloud-cli/userdb.js.map +1 -1
  29. package/dist/src/communicator.d.ts +3 -2
  30. package/dist/src/communicator.d.ts.map +1 -1
  31. package/dist/src/communicator.js.map +1 -1
  32. package/dist/src/context.d.ts +3 -3
  33. package/dist/src/context.d.ts.map +1 -1
  34. package/dist/src/context.js +8 -8
  35. package/dist/src/context.js.map +1 -1
  36. package/dist/src/dbos-executor.d.ts +19 -7
  37. package/dist/src/dbos-executor.d.ts.map +1 -1
  38. package/dist/src/dbos-executor.js +186 -67
  39. package/dist/src/dbos-executor.js.map +1 -1
  40. package/dist/src/dbos-runtime/cli.d.ts +0 -1
  41. package/dist/src/dbos-runtime/cli.d.ts.map +1 -1
  42. package/dist/src/dbos-runtime/cli.js +14 -2
  43. package/dist/src/dbos-runtime/cli.js.map +1 -1
  44. package/dist/src/dbos-runtime/config.d.ts +3 -0
  45. package/dist/src/dbos-runtime/config.d.ts.map +1 -1
  46. package/dist/src/dbos-runtime/config.js +0 -1
  47. package/dist/src/dbos-runtime/config.js.map +1 -1
  48. package/dist/src/dbos-runtime/debug.d.ts +4 -0
  49. package/dist/src/dbos-runtime/debug.d.ts.map +1 -0
  50. package/dist/src/dbos-runtime/debug.js +23 -0
  51. package/dist/src/dbos-runtime/debug.js.map +1 -0
  52. package/dist/src/dbos-runtime/runtime.d.ts +2 -2
  53. package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
  54. package/dist/src/dbos-runtime/runtime.js +20 -21
  55. package/dist/src/dbos-runtime/runtime.js.map +1 -1
  56. package/dist/src/debugger/debug_workflow.d.ts +8 -8
  57. package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
  58. package/dist/src/debugger/debug_workflow.js +107 -36
  59. package/dist/src/debugger/debug_workflow.js.map +1 -1
  60. package/dist/src/httpServer/handler.d.ts +1 -1
  61. package/dist/src/httpServer/handler.d.ts.map +1 -1
  62. package/dist/src/httpServer/handler.js +14 -14
  63. package/dist/src/httpServer/handler.js.map +1 -1
  64. package/dist/src/httpServer/server.d.ts +4 -4
  65. package/dist/src/httpServer/server.d.ts.map +1 -1
  66. package/dist/src/httpServer/server.js +17 -17
  67. package/dist/src/httpServer/server.js.map +1 -1
  68. package/dist/src/{dbos-runtime → staticAnalysis}/TypeParser.d.ts +4 -0
  69. package/dist/src/staticAnalysis/TypeParser.d.ts.map +1 -0
  70. package/dist/src/{dbos-runtime → staticAnalysis}/TypeParser.js +34 -1
  71. package/dist/src/staticAnalysis/TypeParser.js.map +1 -0
  72. package/dist/src/{dbos-runtime → staticAnalysis}/openApi.d.ts.map +1 -1
  73. package/dist/src/{dbos-runtime → staticAnalysis}/openApi.js +1 -31
  74. package/dist/src/staticAnalysis/openApi.js.map +1 -0
  75. package/dist/src/staticAnalysis/tsDiagUtil.d.ts.map +1 -0
  76. package/dist/src/staticAnalysis/tsDiagUtil.js.map +1 -0
  77. package/dist/src/system_database.d.ts +22 -9
  78. package/dist/src/system_database.d.ts.map +1 -1
  79. package/dist/src/system_database.js +44 -42
  80. package/dist/src/system_database.js.map +1 -1
  81. package/dist/src/telemetry/collector.d.ts +5 -5
  82. package/dist/src/telemetry/collector.d.ts.map +1 -1
  83. package/dist/src/telemetry/collector.js +5 -17
  84. package/dist/src/telemetry/collector.js.map +1 -1
  85. package/dist/src/telemetry/exporters.d.ts +11 -24
  86. package/dist/src/telemetry/exporters.d.ts.map +1 -1
  87. package/dist/src/telemetry/exporters.js +42 -129
  88. package/dist/src/telemetry/exporters.js.map +1 -1
  89. package/dist/src/telemetry/index.d.ts +6 -2
  90. package/dist/src/telemetry/index.d.ts.map +1 -1
  91. package/dist/src/telemetry/index.js +16 -0
  92. package/dist/src/telemetry/index.js.map +1 -1
  93. package/dist/src/telemetry/logs.d.ts +35 -11
  94. package/dist/src/telemetry/logs.d.ts.map +1 -1
  95. package/dist/src/telemetry/logs.js +158 -53
  96. package/dist/src/telemetry/logs.js.map +1 -1
  97. package/dist/src/telemetry/traces.d.ts +1 -6
  98. package/dist/src/telemetry/traces.d.ts.map +1 -1
  99. package/dist/src/telemetry/traces.js +2 -34
  100. package/dist/src/telemetry/traces.js.map +1 -1
  101. package/dist/src/testing/testing_runtime.d.ts +1 -1
  102. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  103. package/dist/src/testing/testing_runtime.js +8 -2
  104. package/dist/src/testing/testing_runtime.js.map +1 -1
  105. package/dist/src/transaction.d.ts +1 -1
  106. package/dist/src/transaction.d.ts.map +1 -1
  107. package/dist/src/workflow.d.ts +16 -1
  108. package/dist/src/workflow.d.ts.map +1 -1
  109. package/dist/src/workflow.js +103 -61
  110. package/dist/src/workflow.js.map +1 -1
  111. package/examples/hello/README.md +1 -1
  112. package/examples/hello/dbos-config.yaml +3 -0
  113. package/package.json +3 -2
  114. package/dist/src/dbos-runtime/TypeParser.d.ts.map +0 -1
  115. package/dist/src/dbos-runtime/TypeParser.js.map +0 -1
  116. package/dist/src/dbos-runtime/openApi.js.map +0 -1
  117. package/dist/src/dbos-runtime/tsDiagUtil.d.ts.map +0 -1
  118. package/dist/src/dbos-runtime/tsDiagUtil.js.map +0 -1
  119. package/dist/src/telemetry/signals.d.ts +0 -20
  120. package/dist/src/telemetry/signals.d.ts.map +0 -1
  121. package/dist/src/telemetry/signals.js +0 -11
  122. package/dist/src/telemetry/signals.js.map +0 -1
  123. /package/dist/src/{dbos-runtime → staticAnalysis}/openApi.d.ts +0 -0
  124. /package/dist/src/{dbos-runtime → staticAnalysis}/tsDiagUtil.d.ts +0 -0
  125. /package/dist/src/{dbos-runtime → staticAnalysis}/tsDiagUtil.js +0 -0
@@ -1,91 +1,196 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createGlobalLogger = exports.Logger = void 0;
3
+ exports.Logger = exports.GlobalLogger = void 0;
4
4
  const winston_1 = require("winston");
5
+ const TransportStream = require("winston-transport");
5
6
  const applicationVersion_1 = require("../dbos-runtime/applicationVersion");
6
- /* This is a wrapper around a global Winston logger. It holds a reference to the global logger.
7
- * This class is expected to be instantiated by new DBOSContext such that they can share context information.
8
- **/
7
+ const api_1 = require("@opentelemetry/api");
8
+ const api_logs_1 = require("@opentelemetry/api-logs");
9
+ const sdk_logs_1 = require("@opentelemetry/sdk-logs");
10
+ class GlobalLogger {
11
+ telemetryCollector;
12
+ logger;
13
+ addContextMetadata;
14
+ constructor(telemetryCollector, config) {
15
+ this.telemetryCollector = telemetryCollector;
16
+ const winstonTransports = [];
17
+ winstonTransports.push(new winston_1.transports.Console({
18
+ format: consoleFormat,
19
+ level: config?.logLevel || "info",
20
+ silent: config?.silent || false,
21
+ }));
22
+ // Only enable the OTLP transport if we have a telemetry collector and an exporter
23
+ if (this.telemetryCollector?.exporter) {
24
+ winstonTransports.push(new OTLPLogQueueTransport(this.telemetryCollector));
25
+ }
26
+ this.logger = (0, winston_1.createLogger)({ transports: winstonTransports });
27
+ this.addContextMetadata = config?.addContextMetadata || false;
28
+ }
29
+ // We use this form of winston logging methods: `(message: string, ...meta: any[])`. See node_modules/winston/index.d.ts
30
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
31
+ info(logEntry, metadata) {
32
+ if (typeof logEntry === "string") {
33
+ this.logger.info(logEntry, metadata);
34
+ }
35
+ else {
36
+ this.logger.info(JSON.stringify(logEntry), metadata);
37
+ }
38
+ }
39
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
40
+ debug(logEntry, metadata) {
41
+ if (typeof logEntry === "string") {
42
+ this.logger.debug(logEntry, metadata);
43
+ }
44
+ else {
45
+ this.logger.debug(JSON.stringify(logEntry), metadata);
46
+ }
47
+ }
48
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
49
+ warn(logEntry, metadata) {
50
+ if (typeof logEntry === "string") {
51
+ this.logger.warn(logEntry, metadata);
52
+ }
53
+ else {
54
+ this.logger.warn(JSON.stringify(logEntry), metadata);
55
+ }
56
+ }
57
+ // metadata can have both ContextualMetadata and the error stack trace
58
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
59
+ error(inputError, metadata) {
60
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
61
+ this.logger.error(inputError, metadata);
62
+ }
63
+ }
64
+ exports.GlobalLogger = GlobalLogger;
65
+ /******************/
66
+ /* CONTEXT LOGGER */
67
+ /******************/
68
+ // Wrapper around our global logger. Expected to be instantiated by a new contexts so they can inject contextual metadata
9
69
  class Logger {
10
70
  globalLogger;
11
71
  ctx;
12
- // Eventually this object will implement one of our TelemetrySignal interface
13
- metadata = {};
72
+ metadata;
14
73
  constructor(globalLogger, ctx) {
15
74
  this.globalLogger = globalLogger;
16
75
  this.ctx = ctx;
17
- if (this.globalLogger.addContextMetadata) {
18
- this.metadata = {
19
- workflowUUID: this.ctx.workflowUUID,
20
- authenticatedUser: this.ctx.authenticatedUser,
21
- traceId: this.ctx.span.spanContext().traceId,
22
- spanId: this.ctx.span.spanContext().spanId,
23
- };
24
- }
76
+ this.metadata = {
77
+ includeContextMetadata: this.globalLogger.addContextMetadata,
78
+ workflowUUID: this.ctx.workflowUUID,
79
+ authenticatedUser: this.ctx.authenticatedUser,
80
+ traceId: this.ctx.span.spanContext().traceId,
81
+ spanId: this.ctx.span.spanContext().spanId,
82
+ };
25
83
  }
26
- info(message) {
27
- this.globalLogger.info(message, this.metadata);
28
- }
29
- debug(message) {
30
- this.globalLogger.debug(message, this.metadata);
31
- }
32
- warn(message) {
33
- this.globalLogger.warn(message, this.metadata);
34
- }
35
- emerg(message) {
36
- this.globalLogger.emerg(message, this.metadata);
84
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
85
+ info(logEntry) {
86
+ if (typeof logEntry === "string") {
87
+ this.globalLogger.info(logEntry, this.metadata);
88
+ }
89
+ else {
90
+ this.globalLogger.info(JSON.stringify(logEntry), this.metadata);
91
+ }
37
92
  }
38
- alert(message) {
39
- this.globalLogger.alert(message, this.metadata);
93
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
94
+ debug(logEntry) {
95
+ if (typeof logEntry === "string") {
96
+ this.globalLogger.debug(logEntry, this.metadata);
97
+ }
98
+ else {
99
+ this.globalLogger.debug(JSON.stringify(logEntry), this.metadata);
100
+ }
40
101
  }
41
- crit(message) {
42
- this.globalLogger.crit(message, this.metadata);
102
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
103
+ warn(logEntry) {
104
+ if (typeof logEntry === "string") {
105
+ this.globalLogger.warn(logEntry, this.metadata);
106
+ }
107
+ else {
108
+ this.globalLogger.warn(JSON.stringify(logEntry), this.metadata);
109
+ }
43
110
  }
44
111
  // We give users the same interface (message: string argument) but create an error to get a stack trace
45
112
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
46
113
  error(inputError) {
47
114
  if (inputError instanceof Error) {
48
- this.globalLogger.error(inputError.message, { ...this.metadata, stack: inputError.stack, cause: inputError.cause });
115
+ this.globalLogger.error(inputError.message, { ...this.metadata, stack: inputError.stack });
49
116
  }
50
117
  else if (typeof inputError === "string") {
51
- const e = new Error();
52
- this.globalLogger.error(inputError, { ...this.metadata, stack: e.stack });
118
+ this.globalLogger.error(inputError, { ...this.metadata, stack: new Error().stack });
53
119
  }
54
120
  else {
55
- // If this is neither a string nor an error, we just log it as is an ommit the context
56
121
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
57
- this.globalLogger.error(inputError.toString());
122
+ this.globalLogger.error(JSON.stringify(inputError), { ...this.metadata, stack: new Error().stack });
58
123
  }
59
124
  }
60
125
  }
61
126
  exports.Logger = Logger;
62
- function createGlobalLogger(config) {
63
- const logger = (0, winston_1.createLogger)({
64
- format: consoleFormat,
65
- transports: [
66
- new winston_1.transports.Console({
67
- level: config?.logLevel || "info",
68
- }),
69
- ],
70
- silent: config?.silent || false,
71
- });
72
- logger.addContextMetadata = config?.addContextMetadata || false;
73
- return logger;
74
- }
75
- exports.createGlobalLogger = createGlobalLogger;
76
- const consoleFormat = winston_1.format.combine(winston_1.format.errors({ stack: true }), winston_1.format.timestamp(), winston_1.format.colorize(),
77
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
78
- winston_1.format.printf((info) => {
127
+ /***********************/
128
+ /* FORMAT & TRANSPORTS */
129
+ /***********************/
130
+ 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) => {
79
131
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
80
- const { timestamp, level, message, stack, ...args } = info;
132
+ const { timestamp, level, message, stack } = info;
81
133
  const applicationVersion = (0, applicationVersion_1.getApplicationVersion)();
82
134
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-assignment
83
135
  const ts = timestamp.slice(0, 19).replace("T", " ");
84
136
  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-assignment
85
137
  const formattedStack = stack?.split("\n").slice(1).join("\n");
138
+ const contextualMetadata = {
139
+ workflowUUID: info.workflowUUID,
140
+ authenticatedUser: info.authenticatedUser,
141
+ traceId: info.traceId,
142
+ spanId: info.spanId,
143
+ };
86
144
  const messageString = typeof message === "string" ? message : JSON.stringify(message);
145
+ const fullMessageString = `${messageString}${info.includeContextMetadata ? ` ${JSON.stringify(contextualMetadata)}` : ""}`;
87
146
  const versionString = applicationVersion ? ` [version ${applicationVersion}]` : "";
88
147
  // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
89
- return `${ts}${versionString} [${level}]: ${messageString} ${Object.keys(args).length ? "\n" + JSON.stringify(args, null, 2) : ""} ${stack ? "\n" + formattedStack : ""}`;
148
+ return `${ts}${versionString} [${level}]: ${fullMessageString} ${stack ? "\n" + formattedStack : ""}`;
90
149
  }));
150
+ class OTLPLogQueueTransport extends TransportStream {
151
+ telemetryCollector;
152
+ name = "OTLPLogQueueTransport";
153
+ otelLogger;
154
+ constructor(telemetryCollector) {
155
+ super();
156
+ this.telemetryCollector = telemetryCollector;
157
+ // not sure if we need a more explicit name here
158
+ this.otelLogger = new sdk_logs_1.LoggerProvider().getLogger("default");
159
+ }
160
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
161
+ log(info, callback) {
162
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
163
+ const { level, message, stack } = info;
164
+ const contextualMetadata = {
165
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
166
+ workflowUUID: info.workflowUUID,
167
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
168
+ authenticatedUser: info.authenticatedUser,
169
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
170
+ traceId: info.traceId,
171
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
172
+ spanId: info.spanId,
173
+ };
174
+ const levelToSeverityNumber = {
175
+ error: api_logs_1.SeverityNumber.ERROR,
176
+ warn: api_logs_1.SeverityNumber.WARN,
177
+ info: api_logs_1.SeverityNumber.INFO,
178
+ debug: api_logs_1.SeverityNumber.DEBUG,
179
+ };
180
+ const log = {
181
+ severityNumber: levelToSeverityNumber[level],
182
+ severityText: level,
183
+ body: message,
184
+ timestamp: new Date().getTime(),
185
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
186
+ attributes: { ...contextualMetadata, stack },
187
+ // TODO as a nice-to-have, we could retrieve the operation current context, if we use a context manager, and inject the traceId/spanId in the LogRecord
188
+ // See https://opentelemetry.io/docs/instrumentation/js/context/#active-context
189
+ context: api_1.context.active(),
190
+ };
191
+ const logRecord = new sdk_logs_1.LogRecord(this.otelLogger, log);
192
+ this.telemetryCollector.push(logRecord);
193
+ callback();
194
+ }
195
+ }
91
196
  //# sourceMappingURL=logs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"logs.js","sourceRoot":"","sources":["../../../src/telemetry/logs.ts"],"names":[],"mappings":";;;AAAA,qCAAqF;AACrF,2EAA2E;AAc3E;;IAEI;AACJ,MAAa,MAAM;IAGY;IAA8C;IAF3E,6EAA6E;IACpE,QAAQ,GAAW,EAAE,CAAC;IAC/B,YAA6B,YAA2B,EAAmB,GAAgB;QAA9D,iBAAY,GAAZ,YAAY,CAAe;QAAmB,QAAG,GAAH,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AAC,MAAgB;SAC9B,CAAC;QAEF,MAAM,qBAAqB,GAAsC;YAC/D,KAAK,EAAE,yBAAc,CAAC,KAAK;YAC3B,IAAI,EAAE,yBAAc,CAAC,IAAI;YACzB,IAAI,EAAE,yBAAc,CAAC,IAAI;YACzB,KAAK,EAAE,yBAAc,CAAC,KAAK;SAC5B,CAAC;QAEF,MAAM,GAAG,GAAc;YACrB,cAAc,EAAE,qBAAqB,CAAC,KAAe,CAAC;YACtD,YAAY,EAAE,KAAe;YAC7B,IAAI,EAAE,OAAiB;YACvB,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE;YAC/B,mEAAmE;YACnE,UAAU,EAAE,EAAE,GAAG,kBAAkB,EAAE,KAAK,EAAmB;YAC7D,uJAAuJ;YACvJ,+EAA+E;YAC/E,OAAO,EAAE,aAAO,CAAC,MAAM,EAAE;SAC1B,CAAC;QAEF,MAAM,SAAS,GAAkB,IAAI,oBAAa,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAEzE,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAExC,QAAQ,EAAE,CAAC;IACb,CAAC;CACF"}
@@ -1,11 +1,6 @@
1
- import { ReadableSpan, Span } from "@opentelemetry/sdk-trace-base";
1
+ import { Span } from "@opentelemetry/sdk-trace-base";
2
2
  import { Attributes, SpanContext } from "@opentelemetry/api";
3
3
  import { TelemetryCollector } from "./collector";
4
- export interface TracerConfig {
5
- enabled?: boolean;
6
- endpoint?: string;
7
- }
8
- export declare function spanToString(span: ReadableSpan): string;
9
4
  export declare class Tracer {
10
5
  private readonly telemetryCollector;
11
6
  private readonly tracer;
@@ -1 +1 @@
1
- {"version":3,"file":"traces.d.ts","sourceRoot":"","sources":["../../../src/telemetry/traces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,YAAY,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAExF,OAAsB,EAAE,UAAU,EAAE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AG,IAAI;IAUzE,OAAO,CAAC,IAAI,EAAE,IAAI;CAInB"}
@@ -3,29 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Tracer = exports.spanToString = void 0;
6
+ exports.Tracer = void 0;
7
7
  const sdk_trace_base_1 = require("@opentelemetry/sdk-trace-base");
8
8
  const resources_1 = require("@opentelemetry/resources");
9
9
  const api_1 = __importDefault(require("@opentelemetry/api"));
10
- const core_1 = require("@opentelemetry/core");
11
10
  const semantic_conventions_1 = require("@opentelemetry/semantic-conventions");
12
- function spanToString(span) {
13
- return JSON.stringify({
14
- name: span.name,
15
- kind: span.kind,
16
- traceId: span.spanContext().traceId,
17
- spanId: span.spanContext().spanId,
18
- traceFlags: span.spanContext().traceFlags,
19
- traceState: span.spanContext().traceState?.serialize(),
20
- parentSpanId: span.parentSpanId,
21
- start: (0, core_1.hrTimeToMicroseconds)(span.startTime),
22
- duration: (0, core_1.hrTimeToMicroseconds)(span.duration),
23
- attributes: span.attributes,
24
- status: span.status,
25
- events: span.events,
26
- });
27
- }
28
- exports.spanToString = spanToString;
29
11
  class Tracer {
30
12
  telemetryCollector;
31
13
  tracer;
@@ -55,21 +37,7 @@ class Tracer {
55
37
  }
56
38
  endSpan(span) {
57
39
  span.end(Date.now());
58
- const workflowUUID = span.attributes.workflowUUID;
59
- const operationName = span.attributes.operationName;
60
- const runAs = span.attributes.runAs;
61
- const transactionID = span.attributes.transaction_id;
62
- const traceID = span.spanContext().traceId;
63
- const signal = {
64
- workflowUUID,
65
- operationName,
66
- runAs,
67
- timestamp: Date.now(),
68
- traceID,
69
- transactionID: transactionID,
70
- traceSpan: span,
71
- };
72
- this.telemetryCollector.push(signal);
40
+ this.telemetryCollector.push(span);
73
41
  }
74
42
  }
75
43
  exports.Tracer = Tracer;
@@ -1 +1 @@
1
- {"version":3,"file":"traces.js","source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EAAE,UAAiB;QAChE,MAAM,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QAC5D,IAAI,UAAU,EAAE;YACd,MAAM,GAAG,GAAG,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,UAAU,CAAC,CAAC;YACpF,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,GAAG,CAAS,CAAC;SAC/F;aAAM;YACL,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,CAAS,CAAC;SACnE;IACH,CAAC;IAED,OAAO,CAAC,IAAU;QAChB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QACrB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAoB,CAAC,CAAC;IACrD,CAAC;CACF;AA/BD,wBA+BC"}
@@ -35,7 +35,7 @@ export interface TestingRuntime {
35
35
  */
36
36
  export declare function createInternalTestRuntime(userClasses: object[], testConfig: DBOSConfig, systemDB?: SystemDatabase): Promise<TestingRuntime>;
37
37
  /**
38
- * This class provides a runtime to test Opeorn functions in unit tests.
38
+ * This class provides a runtime to test DBOS functions in unit tests.
39
39
  */
40
40
  export declare class TestingRuntimeImpl implements TestingRuntime {
41
41
  #private;
@@ -1 +1 @@
1
- {"version":3,"file":"testing_runtime.d.ts","sourceRoot":"","sources":["../../../src/testing/testing_runtime.ts"],"names":[],"mappings":";;AACA,OAAO,EAAE,eAAe,EAAE,MAAM,MAAM,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAmB,MAAM,YAAY,CAAC;AAG1D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,UAAU,EA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,GAAG,OAAO,CAAC,IAAI,CAAC;IAI7H,QAAQ,CAAC,CAAC,SAAS,WAAW,CAAC,GAAG,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,cAAc,GAAE,MAAmD,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;IAIrK,gBAAgB,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC;IAItD,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;IAK3D,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvC,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B;;OAEG;IACH,WAAW,IAAI,YAAY;CAM5B"}
@@ -39,11 +39,12 @@ async function createInternalTestRuntime(userClasses, testConfig, systemDB) {
39
39
  }
40
40
  exports.createInternalTestRuntime = createInternalTestRuntime;
41
41
  /**
42
- * This class provides a runtime to test Opeorn functions in unit tests.
42
+ * This class provides a runtime to test DBOS functions in unit tests.
43
43
  */
44
44
  class TestingRuntimeImpl {
45
45
  #server = null;
46
46
  #applicationConfig = undefined;
47
+ #isInitialized = false;
47
48
  /**
48
49
  * Initialize the testing runtime by loading user functions specified in classes and using the specified config.
49
50
  * This should be the first function call before any subsequent calls.
@@ -54,12 +55,17 @@ class TestingRuntimeImpl {
54
55
  await dbosExec.init(...userClasses);
55
56
  this.#server = new server_1.DBOSHttpServer(dbosExec);
56
57
  this.#applicationConfig = dbosExec.config.application;
58
+ this.#isInitialized = true;
57
59
  }
58
60
  /**
59
61
  * Release resources after tests.
60
62
  */
61
63
  async destroy() {
62
- await this.#server?.dbosExec.destroy();
64
+ // Only release once.
65
+ if (this.#isInitialized) {
66
+ await this.#server?.dbosExec.destroy();
67
+ this.#isInitialized = false;
68
+ }
63
69
  }
64
70
  getConfig(key, defaultValue) {
65
71
  if (!this.#applicationConfig || !(0, lodash_1.has)(this.#applicationConfig, key)) {
@@ -1 +1 @@
1
- {"version":3,"file":"testing_runtime.js","sourceRoot":"","sources":["../../../src/testing/testing_runtime.ts"],"names":[],"mappings":";;;AAGA,wCAA0D;AAC1D,8CAAwD;AACxD,oCAA6D;AAE7D,iDAAsD;AACtD,oDAA4D;AAC5D,mDAA6E;AAM7E,mCAAkC;AAClC,2BAA4B;AAE5B;;GAEG;AACI,KAAK,UAAU,oBAAoB,CAAC,WAAqB,EAAE,iBAAyB,2BAAkB;IAC3G,MAAM,CAAE,UAAU,CAAE,GAAG,IAAA,wBAAe,EAAC,EAAC,UAAU,EAAE,cAAc,EAAC,CAAC,CAAC;IAErE,gFAAgF;IAChF,MAAM,cAAc,GAAG,IAAI,WAAM,CAAC;QAChC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI;QAChC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI;QAChC,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI;QAChC,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,QAAQ;QACxC,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,QAAQ;KACzC,CAAC,CAAC;IACH,MAAM,cAAc,CAAC,OAAO,EAAE,CAAC;IAC/B,MAAM,cAAc,CAAC,KAAK,CAAC,2BAA2B,UAAU,CAAC,eAAe,GAAG,CAAC,CAAC;IACrF,MAAM,cAAc,CAAC,GAAG,EAAE,CAAC;IAE3B,MAAM,GAAG,GAAG,yBAAyB,CAAC,WAAW,EAAE,UAAU,EAAE,SAAS,CAAC,CAAA;IACzE,OAAO,GAAG,CAAC;AACb,CAAC;AAjBD,oDAiBC;AA2BD;;GAEG;AACI,KAAK,UAAU,yBAAyB,CAAC,WAAqB,EAAE,UAAsB,EAAE,QAAyB;IACtH,MAAM,GAAG,GAAG,IAAI,kBAAkB,EAAE,CAAC;IACrC,MAAM,GAAG,CAAC,IAAI,CAAC,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AW,EAAE,iBAAyB,4BAAY,CAAC,6BAA6B;QAC/I,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;IACxE,CAAC;IAED,gBAAgB,CAAI,YAAoB;QACtC,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,WAAW,CAAI,GAAW,EAAE,GAAG,MAAa;QAChD,iEAAiE;QACjE,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,MAAM,CAAC,CAAC;IAC/D,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;IACxD,CAAC;IAED,cAAc;QACZ,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,WAAW;QACT,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB,MAAM,IAAI,iBAAS,CAAC,qEAAqE,CAAC,CAAC;SAC5F;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC/B,CAAC;CACF;AAhID,gDAgIC"}
@@ -3,7 +3,7 @@ import { WorkflowContextImpl } from "./workflow";
3
3
  import { Span } from "@opentelemetry/sdk-trace-base";
4
4
  import { DBOSContext, DBOSContextImpl } from "./context";
5
5
  import { ValuesOf } from "./utils";
6
- import { WinstonLogger as Logger } from "./telemetry/logs";
6
+ import { GlobalLogger as Logger } from "./telemetry/logs";
7
7
  import { WorkflowContextDebug } from "./debugger/debug_workflow";
8
8
  export type Transaction<T extends any[], R> = (ctxt: TransactionContext<any>, ...args: T) => Promise<R>;
9
9
  export interface TransactionConfig {
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.d.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H,QAAQ,CAAC,UAAU,EAAE,gBAAgB;IACrC,QAAQ,CAAC,MAAM,EAAE,CAAC;IAIlB,QAAQ,CAAC,UAAU,EAAE,MAAM;gBALlB,UAAU,EAAE,gBAAgB,EAC5B,MAAM,EAAE,CAAC,EAClB,eAAe,EAAE,mBAAmB,GAAG,oBAAoB,EAC3D,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACL,UAAU,EAAE,MAAM,EAC3B,aAAa,EAAE,MAAM;CAQxB"}
@@ -49,11 +49,18 @@ export interface WorkflowContext extends DBOSContext {
49
49
  export declare class WorkflowContextImpl extends DBOSContextImpl implements WorkflowContext {
50
50
  #private;
51
51
  readonly workflowConfig: WorkflowConfig;
52
+ readonly presetUUID: boolean;
52
53
  functionID: number;
53
54
  readonly resultBuffer: Map<number, BufferedResult>;
54
55
  readonly isTempWorkflow: boolean;
55
- constructor(wfe: DBOSExecutor, parentCtx: DBOSContextImpl | undefined, workflowUUID: string, workflowConfig: WorkflowConfig, workflowName: string);
56
+ tempWfOperationType: string;
57
+ tempWfOperationName: string;
58
+ constructor(dbosExec: DBOSExecutor, parentCtx: DBOSContextImpl | undefined, workflowUUID: string, workflowConfig: WorkflowConfig, workflowName: string, presetUUID: boolean);
56
59
  functionIDGetIncrement(): number;
60
+ /**
61
+ * Retrieve the transaction snapshot information of the current transaction
62
+ */
63
+ retrieveSnapshot(client: UserDatabaseClient): Promise<string>;
57
64
  /**
58
65
  * Check if an operation has already executed in a workflow.
59
66
  * If it previously executed successfully, return its output.
@@ -75,10 +82,18 @@ export declare class WorkflowContextImpl extends DBOSContextImpl implements Work
75
82
  * Write a guarded operation's output to the database.
76
83
  */
77
84
  recordGuardedOutput<R>(client: UserDatabaseClient, funcID: number, output: R): Promise<string>;
85
+ /**
86
+ * Write an unguarded operation's output to the database.
87
+ */
88
+ recordUnguardedOutput<R>(client: UserDatabaseClient, funcID: number, output: R): Promise<string>;
78
89
  /**
79
90
  * Record an error in a guarded operation to the database.
80
91
  */
81
92
  recordGuardedError(client: UserDatabaseClient, funcID: number, err: Error): Promise<void>;
93
+ /**
94
+ * Record an error in an unguarded operation to the database.
95
+ */
96
+ recordUnguardedError(client: UserDatabaseClient, funcID: number, err: Error): Promise<string>;
82
97
  /**
83
98
  * Invoke another workflow as its child workflow and return a workflow handle.
84
99
  * The child workflow is guaranteed to be executed exactly once, even if the workflow is retried with the same UUID.
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/workflow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAsB,MAAM,iBAAiB,CAAC;AAEnE,OAAO,EAAkB,WAAW,EAAE,kBAAkB,EAA0B,MAAM,eAAe,CAAC;AACxG,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAA2B,MAAM,gBAAgB,CAAC;AAI5F,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGtE,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAG7F,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC;AAGjI,KAAK,MAAM,GAAG,CAAC,IAAI,EAAE,kBAAkB,CAAC,GAAG,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;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