Skip to content

Commit

Permalink
💽 db migration (#1191)
Browse files Browse the repository at this point in the history
* 💽 db migration

* ci: apply automated fixes

* 💽 db migration

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
  • Loading branch information
thibaultleouay and autofix-ci[bot] authored Feb 12, 2025
1 parent 881e285 commit 09cc4de
Show file tree
Hide file tree
Showing 6 changed files with 2,349 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/web/src/app/api/checker/cron/_cron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ const createCronTask = async ({
degradedAfter: row.degradedAfter,
timeout: row.timeout,
trigger: "cron",
otelConfig: row.otelEndpoint
? { endpoint: row.otelEndpoint, headers: row.otelHeaders }
: undefined,
};
}
if (row.jobType === "tcp") {
Expand All @@ -188,6 +191,9 @@ const createCronTask = async ({
degradedAfter: row.degradedAfter,
timeout: row.timeout,
trigger: "cron",
otelConfig: row.otelEndpoint
? { endpoint: row.otelEndpoint, headers: row.otelHeaders }
: undefined,
};
}

Expand Down
2 changes: 2 additions & 0 deletions packages/db/drizzle/0039_lonely_jigsaw.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE `monitor` ADD `otel_endpoint` text;--> statement-breakpoint
ALTER TABLE `monitor` ADD `otel_headers` text;
Loading

0 comments on commit 09cc4de

Please sign in to comment.