trigger.dev 0.0.0-v3-prerelease-20240515122634 → 0.0.0-v3-prerelease-20240517090458
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -799,7 +799,7 @@ import invariant from "tiny-invariant";
|
|
|
799
799
|
import { z as z4 } from "zod";
|
|
800
800
|
|
|
801
801
|
// package.json
|
|
802
|
-
var version = "0.0.0-v3-prerelease-
|
|
802
|
+
var version = "0.0.0-v3-prerelease-20240517090458";
|
|
803
803
|
var dependencies = {
|
|
804
804
|
"@anatine/esbuild-decorators": "^0.2.19",
|
|
805
805
|
"@clack/prompts": "^0.7.0",
|
|
@@ -816,7 +816,7 @@ var dependencies = {
|
|
|
816
816
|
"@opentelemetry/sdk-trace-base": "^1.22.0",
|
|
817
817
|
"@opentelemetry/sdk-trace-node": "^1.22.0",
|
|
818
818
|
"@opentelemetry/semantic-conventions": "^1.22.0",
|
|
819
|
-
"@trigger.dev/core": "workspace:0.0.0-v3-prerelease-
|
|
819
|
+
"@trigger.dev/core": "workspace:0.0.0-v3-prerelease-20240517090458",
|
|
820
820
|
"@types/degit": "^2.8.3",
|
|
821
821
|
chalk: "^5.2.0",
|
|
822
822
|
chokidar: "^3.5.3",
|
|
@@ -2846,7 +2846,7 @@ async function createAuthorizationCode(apiClient2) {
|
|
|
2846
2846
|
return await tracer.startActiveSpan("createAuthorizationCode", async (span) => {
|
|
2847
2847
|
try {
|
|
2848
2848
|
const createAuthCodeSpinner = spinner();
|
|
2849
|
-
createAuthCodeSpinner.start("Creating
|
|
2849
|
+
createAuthCodeSpinner.start("Creating authorization code");
|
|
2850
2850
|
const authorizationCodeResult = await apiClient2.createAuthorizationCode();
|
|
2851
2851
|
if (!authorizationCodeResult.success) {
|
|
2852
2852
|
createAuthCodeSpinner.stop(
|
|
@@ -4579,7 +4579,9 @@ async function compileProject(config, options, configPath) {
|
|
|
4579
4579
|
const workerSetupPath = join6(cliRootPath(), "workers", "prod", "worker-setup.js");
|
|
4580
4580
|
let workerContents = workerFacade.replace("__TASKS__", createTaskFileImports(taskFiles)).replace(
|
|
4581
4581
|
"__WORKER_SETUP__",
|
|
4582
|
-
`import { tracingSDK } from "${escapeImportPath(
|
|
4582
|
+
`import { tracingSDK, otelTracer, otelLogger } from "${escapeImportPath(
|
|
4583
|
+
workerSetupPath
|
|
4584
|
+
)}";`
|
|
4583
4585
|
);
|
|
4584
4586
|
if (configPath) {
|
|
4585
4587
|
logger.debug("Importing project config from", { configPath });
|
|
@@ -5334,7 +5336,8 @@ var BackgroundWorker = class {
|
|
|
5334
5336
|
const cwd = dirname2(this.path);
|
|
5335
5337
|
const fullEnv = {
|
|
5336
5338
|
...this.params.env,
|
|
5337
|
-
...this.#readEnvVars()
|
|
5339
|
+
...this.#readEnvVars(),
|
|
5340
|
+
...this.params.debugOtel ? { OTEL_LOG_LEVEL: "debug" } : {}
|
|
5338
5341
|
};
|
|
5339
5342
|
logger.debug("Initializing worker", { path: this.path, cwd, fullEnv });
|
|
5340
5343
|
this.tasks = await new Promise((resolve5, reject) => {
|
|
@@ -5976,7 +5979,9 @@ function useDev({
|
|
|
5976
5979
|
const workerSetupPath = join7(cliRootPath(), "workers", "dev", "worker-setup.js");
|
|
5977
5980
|
let entryPointContents = workerFacade.replace("__TASKS__", createTaskFileImports(taskFiles)).replace(
|
|
5978
5981
|
"__WORKER_SETUP__",
|
|
5979
|
-
`import { tracingSDK, sender } from "${escapeImportPath(
|
|
5982
|
+
`import { tracingSDK, otelTracer, otelLogger, sender } from "${escapeImportPath(
|
|
5983
|
+
workerSetupPath
|
|
5984
|
+
)}";`
|
|
5980
5985
|
);
|
|
5981
5986
|
if (configPath) {
|
|
5982
5987
|
configPath = normalize(configPath);
|