From b528b5f238c07201149efc314e99bb3f42ce0547 Mon Sep 17 00:00:00 2001 From: Daniel McCoy Stephenson Date: Sat, 7 Nov 2026 21:35:08 -0700 Subject: [PATCH] Name isEnabled() in the README's "Turning it off" The README documented disabledReason(), environmentOptsOut() and installId() but never isEnabled(), and did not say the two status methods part ways after close(). Closes #30 Co-Authored-By: Claude Opus 5.5 --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index d333fd8..e13d24d 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,9 @@ or `"no key"`, or `"unavailable"` when the client cannot send at all (a browser build, a blank base URL, application name or version, a version or explicit installation ID over 255 bytes, or the thread could not be started) — and is empty when the client reports, so a program can print it. +`client.isEnabled()` says whether `report` will send anything at all. The two +part ways after `close()`: `isEnabled()` turns false, while `disabledReason()` +is unchanged by `close()` — still empty for a client that was reporting. A default-constructed `TraceClient` is disabled with reason `"config"`. A disabled client also never makes up or writes an [installation ID](#every-event-carries-a-random-installation-id).