From 3e2d14ade0fe0c753d27e77756fbea1766a312d0 Mon Sep 17 00:00:00 2001 From: scottbrumley Date: Sat, 21 Mar 2026 07:03:02 -0400 Subject: [PATCH] - Update to fix dataset being sent to one HTTP collector --- tools/send_test_events.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/send_test_events.py b/tools/send_test_events.py index 3e776b71..5cf15ebf 100644 --- a/tools/send_test_events.py +++ b/tools/send_test_events.py @@ -20,7 +20,10 @@ def load_env(env_path: str) -> None: if not os.path.isfile(env_path): raise FileNotFoundError(f".env file not found at: {env_path}") - load_dotenv(env_path) + # override=True ensures that when replay_scenario.py iterates multiple + # sources with different .env files, each source's API_URL and API_KEY + # replace the previously loaded values rather than being silently ignored. + load_dotenv(env_path, override=True) for var in ("API_URL", "API_KEY"): if os.getenv(var) is None: raise EnvironmentError(f"Missing {var} in {env_path}")