@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 35 lines 877 Bytes
Raw
1 import * as Axiom from "@alchemy.run/axiom";
2 import { Stack } from "alchemy/Stack";
3
4 export const Traces = Axiom.Dataset(
5 "Traces",
6 Stack.useSync(({ stage }) => ({
7 name: `${stage}-traces`,
8 kind: "otel:traces:v1" as const,
9 description: `OTEL traces for stage '${stage}'`,
10 retentionDays: 30,
11 useRetentionPeriod: true,
12 })),
13 );
14
15 export const Logs = Axiom.Dataset(
16 "Logs",
17 Stack.useSync(({ stage }) => ({
18 name: `${stage}-logs`,
19 kind: "otel:logs:v1" as const,
20 description: `OTEL logs for stage '${stage}'`,
21 retentionDays: 30,
22 useRetentionPeriod: true,
23 })),
24 );
25
26 export const Metrics = Axiom.Dataset(
27 "Metrics",
28 Stack.useSync(({ stage }) => ({
29 name: `${stage}-metrics`,
30 kind: "otel:metrics:v1" as const,
31 description: `OTEL metrics for stage '${stage}'`,
32 retentionDays: 30,
33 useRetentionPeriod: true,
34 })),
35 );