t3-code-android-nightly/.repos/alchemy-effect/stacks/otel/Datasets.ts
Julius Marminge bd851c0203
chore: add Alchemy reference repo subtree (#2918)
Co-authored-by: codex <codex@users.noreply.github.com>
2026-06-03 00:08:31 +00:00

35 lines
872 B
TypeScript

import * as Axiom from "alchemy/Axiom";
import { Stack } from "alchemy/Stack";
export const Traces = Axiom.Dataset(
"Traces",
Stack.useSync(({ stage }) => ({
name: `${stage}-traces`,
kind: "otel:traces:v1" as const,
description: `OTEL traces for stage '${stage}'`,
retentionDays: 30,
useRetentionPeriod: true,
})),
);
export const Logs = Axiom.Dataset(
"Logs",
Stack.useSync(({ stage }) => ({
name: `${stage}-logs`,
kind: "otel:logs:v1" as const,
description: `OTEL logs for stage '${stage}'`,
retentionDays: 30,
useRetentionPeriod: true,
})),
);
export const Metrics = Axiom.Dataset(
"Metrics",
Stack.useSync(({ stage }) => ({
name: `${stage}-metrics`,
kind: "otel:metrics:v1" as const,
description: `OTEL metrics for stage '${stage}'`,
retentionDays: 30,
useRetentionPeriod: true,
})),
);