@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, 06:00 UTC

main
ts 19 lines 605 Bytes
Raw
1 import * as Telemetry from "alchemy/Telemetry";
2 import * as Config from "effect/Config";
3 import * as Effect from "effect/Effect";
4 import * as Layer from "effect/Layer";
5 import { ObservabilityLive as Axiom } from "./Observability.ts";
6
7 // #region show
8 export const Honeycomb = Layer.unwrap(
9 Effect.gen(function* () {
10 const apiKey = yield* Config.Redacted("HONEYCOMB_API_KEY");
11 return Telemetry.layerOtlp({
12 url: "https://api.honeycomb.io",
13 headers: { "x-honeycomb-team": apiKey },
14 });
15 }),
16 );
17
18 export const ObservabilityLive = Layer.mergeAll(Axiom, Honeycomb);
19 // #endregion show