From b7a5106f3629364a0a70a6069dfb0b8d059314d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Sun, 27 Oct 2024 08:16:56 -0400 Subject: [PATCH] Disable logs for cache-do (#2560) --- .changeset/eleven-brooms-travel.md | 5 +++++ packages/cache-do/wrangler.toml | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .changeset/eleven-brooms-travel.md diff --git a/.changeset/eleven-brooms-travel.md b/.changeset/eleven-brooms-travel.md new file mode 100644 index 000000000..a0fa0a374 --- /dev/null +++ b/.changeset/eleven-brooms-travel.md @@ -0,0 +1,5 @@ +--- +'@gitbook/cache-do': patch +--- + +Disable cloudflare observability in production diff --git a/packages/cache-do/wrangler.toml b/packages/cache-do/wrangler.toml index bf0a716d5..3936663a6 100644 --- a/packages/cache-do/wrangler.toml +++ b/packages/cache-do/wrangler.toml @@ -11,8 +11,7 @@ migrations = [ ] [observability] -enabled = true -head_sampling_rate = 0.01 +enabled = false [env.preview] name = "gitbook-open-cache-preview" @@ -25,4 +24,4 @@ migrations = [ [env.preview.observability] enabled = true -head_sampling_rate = 1 +head_sampling_rate = 0.1