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
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.
169
+
</Note>
170
+
167
171
Then, configure the exporters in your `trigger.config.ts` file:
Make sure to set the `AXIOM_API_TOKEN`and `AXIOM_DATASET` environment variables in your project.
218
+
Make sure to set the `AXIOM_API_TOKEN`, `AXIOM_DATASET`, and `AXIOM_METRICS_DATASET` environment variables in your project. Axiom requires a separate, dedicated dataset for metrics — you cannot reuse the same dataset for traces/logs and metrics.
215
219
216
220
It's important to note that you cannot configure exporters using `OTEL_*` environment variables, as they would conflict with our internal telemetry. Instead you should configure the exporters via passing in arguments to the `OTLPTraceExporter`, `OTLPLogExporter`, and `OTLPMetricExporter` constructors. For example, here is how you can configure exporting to Honeycomb:
0 commit comments