From 3505165a3b86c7eab361224a1861e36c777c3fb7 Mon Sep 17 00:00:00 2001 From: Asep Haryana Saputra <90584806+MythEclipse@users.noreply.github.com> Date: Thu, 25 Jun 2026 21:37:04 +0700 Subject: [PATCH] feat: tambah konfigurasi observability Wrangler untuk konsistensi deployment (#3) - Aktifkan logging dengan persist & invocation_logs - Aktifkan tracing dengan persist - Observability dashboard dimatikan (enabled: false) - Sampling rate 100% (head_sampling_rate: 1) Co-authored-by: Claude Opus 4.8 (1M context) --- wrangler.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/wrangler.toml b/wrangler.toml index f2a60aa..c4971a4 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -7,6 +7,22 @@ compatibility_flags = ["nodejs_compat"] account_id = "2bfa421c4f4a11cc11d684a3d14327db" workers_dev = true +# ── Observability ──────────────────────────────────────────────────────────── +[observability] +enabled = false +head_sampling_rate = 1 + +[observability.logs] +enabled = true +head_sampling_rate = 1 +persist = true +invocation_logs = true + +[observability.traces] +enabled = true +persist = true +head_sampling_rate = 1 + # ── Environment Variables ─────────────────────────────────────────────────── # [vars] # RELAY_TIMEOUT_MS = "30000"