From e0dd704247f8bd0e55de28c62a1950045bcd384b Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 10 Aug 2025 11:57:28 -0500 Subject: [PATCH] fix: remove `submit_uuid` from telemetry config profile the `submit_url` should be all we expect by default, since even that has no built-in behavior yet --- docs/narr/install.rst | 6 ++---- src/wuttatell/telemetry.py | 8 -------- tests/test_telemetry.py | 3 --- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/docs/narr/install.rst b/docs/narr/install.rst index f05fee2..aa41f30 100644 --- a/docs/narr/install.rst +++ b/docs/narr/install.rst @@ -12,15 +12,13 @@ Install the WuttaTell package to your virtual environment: pip install WuttaTell Edit your :term:`config file` to add telemetry submission info, and -related settings. Please note, the following example is just that - -and will not work as-is: +related settings: .. code-block:: ini [wutta.telemetry] default.collect_keys = os, python - default.submit_url = /nodes/telemetry - default.submit_uuid = 06897767-eb70-7790-8000-13f368a40ea3 + default.submit_url = https://example.com/api/my-node/telemetry .. note:: diff --git a/src/wuttatell/telemetry.py b/src/wuttatell/telemetry.py index 86d7de6..2194652 100644 --- a/src/wuttatell/telemetry.py +++ b/src/wuttatell/telemetry.py @@ -251,13 +251,6 @@ class TelemetryProfile(WuttaConfigProfile): .. attribute:: submit_url URL to which collected telemetry data should be submitted. - - .. attribute:: submit_uuid - - UUID identifying the record to update when submitting telemetry - data. This value will only make sense in the context of the - collection service responsible for receiving telemetry - submissions. """ @property @@ -270,4 +263,3 @@ class TelemetryProfile(WuttaConfigProfile): keys = self.get_str('collect.keys', default='os,python') self.collect_keys = self.config.parse_list(keys) self.submit_url = self.get_str('submit.url') - self.submit_uuid = self.get_str('submit.uuid') diff --git a/tests/test_telemetry.py b/tests/test_telemetry.py index c2880e0..ae90b97 100644 --- a/tests/test_telemetry.py +++ b/tests/test_telemetry.py @@ -187,13 +187,10 @@ class TestTelemetryProfile(ConfigTestCase): profile = self.make_profile() self.assertEqual(profile.collect_keys, ['os', 'python']) self.assertIsNone(profile.submit_url) - self.assertIsNone(profile.submit_uuid) # configured self.config.setdefault('wutta.telemetry.default.collect.keys', 'os,network,python') self.config.setdefault('wutta.telemetry.default.submit.url', '/nodes/telemetry') - self.config.setdefault('wutta.telemetry.default.submit.uuid', '06897669-272b-7c74-8000-4d311924d24f') profile = self.make_profile() self.assertEqual(profile.collect_keys, ['os', 'network', 'python']) self.assertEqual(profile.submit_url, '/nodes/telemetry') - self.assertEqual(profile.submit_uuid, '06897669-272b-7c74-8000-4d311924d24f')