You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/config/config-file.mdx
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,7 +165,10 @@ You can also configure custom telemetry exporters to send your traces, logs, and
165
165
```
166
166
167
167
<Note>
168
-
Axiom's `/v1/metrics` endpoint only supports protobuf (`application/x-protobuf`), not JSON. Use `@opentelemetry/exporter-metrics-otlp-proto` instead of `@opentelemetry/exporter-metrics-otlp-http` for metrics. Traces and logs work fine with the `-http` (JSON) exporters.
168
+
Axiom's `/v1/metrics` endpoint only supports protobuf (`application/x-protobuf`), not JSON. Use
169
+
`@opentelemetry/exporter-metrics-otlp-proto` instead of
170
+
`@opentelemetry/exporter-metrics-otlp-http` for metrics. Traces and logs work fine with the
171
+
`-http` (JSON) exporters.
169
172
</Note>
170
173
171
174
Then, configure the exporters in your `trigger.config.ts` file:
@@ -264,8 +267,6 @@ export default defineConfig({
264
267
});
265
268
```
266
269
267
-
Each metric exporter is automatically wrapped in a `PeriodicExportingMetricReader`. If you need more control over the reader configuration (e.g., custom export intervals), use `metricReaders` instead.
268
-
269
270
## Runtime
270
271
271
272
We currently only officially support the `node` runtime, but you can try our experimental `bun` runtime by setting the `runtime` option in your config file:
@@ -492,8 +493,9 @@ export default defineConfig({
492
493
```
493
494
494
495
<Note>
495
-
Any packages that install or build a native binary or use WebAssembly (WASM) should be added to external, as they
496
-
cannot be bundled. For example, `re2`, `sharp`, `sqlite3`, and WASM packages should be added to external.
496
+
Any packages that install or build a native binary or use WebAssembly (WASM) should be added to
497
+
external, as they cannot be bundled. For example, `re2`, `sharp`, `sqlite3`, and WASM packages
Trigger.dev collects system and runtime metrics automatically for deployed tasks, and provides an API for recording custom metrics using OpenTelemetry.
84
84
85
-
You can view metrics in the [Metrics dashboards](/insights/metrics), query them with [TRQL](/insights/query), and export them to external services via [telemetry exporters](/config/config-file#telemetry).
85
+
You can view metrics in the [Metrics dashboards](/insights/metrics), query them with [TRQL](/insights/query), and export them to external services via [telemetry exporters](/config/config-file#telemetry-exporters).
86
86
87
87
### Custom metrics API
88
88
@@ -199,4 +199,4 @@ See the [Query page](/insights/query#metrics-table-columns) for the full `metric
199
199
200
200
### Exporting metrics
201
201
202
-
You can send metrics to external observability services (Axiom, Honeycomb, Datadog, etc.) by configuring [telemetry exporters](/config/config-file#telemetry) in your `trigger.config.ts`.
202
+
You can send metrics to external observability services (Axiom, Honeycomb, Datadog, etc.) by configuring [telemetry exporters](/config/config-file#telemetry-exporters) in your `trigger.config.ts`.
0 commit comments