-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtrigger.config.ts
More file actions
48 lines (47 loc) · 1.21 KB
/
trigger.config.ts
File metadata and controls
48 lines (47 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { OTLPLogExporter } from "@opentelemetry/exporter-logs-otlp-http";
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http";
import { prismaExtension } from "@trigger.dev/build/extensions/prisma";
import { defineConfig } from "@trigger.dev/sdk/v3";
export default defineConfig({
project: "proj_euezzwlhugsyhvjaodyk",
runtime: "node",
logLevel: "info",
maxDuration: 300, // 5 minutes max duration for tasks
retries: {
enabledInDev: true,
default: {
maxAttempts: 3,
minTimeoutInMs: 1000,
maxTimeoutInMs: 10000,
factor: 2,
randomize: true,
},
},
dirs: ["./src/trigger"],
build: {
extensions: [
prismaExtension({
schema: "prisma/schema.prisma",
mode: "legacy",
}),
],
},
telemetry: {
exporters: [
new OTLPTraceExporter({
url: process.env.SIGNOZ_OTLP_ENDPOINT,
headers: {
"signoz-ingestion-key": process.env.SIGNOZ_INGESTION_KEY!,
},
}),
],
logExporters: [
new OTLPLogExporter({
url: process.env.SIGNOZ_OTLP_ENDPOINT,
headers: {
"signoz-ingestion-key": process.env.SIGNOZ_INGESTION_KEY!,
},
}),
],
},
});