Repository: pantsbuild/pants

Issue:
minor config-related nit with anonymous telemetry
```
10:17:08.49 [ERROR] Please set `repo_id = "<uuid>"` in the [anonymous-telemetry] section of pants.toml, where `<uuid>` is some fixed random identifier, such as one generated by uuidgen. No telemetry will be sent for this run. See https://www.pantsbuild.org/v2.7/docs/anonymous-telemetry for details.
```

Pants should just generate a UUID and display it in the message as the suggestion.


Discussion:

Resolving patch:
diff --git a/src/python/pants/goal/anonymous_telemetry.py b/src/python/pants/goal/anonymous_telemetry.py
--- a/src/python/pants/goal/anonymous_telemetry.py
+++ b/src/python/pants/goal/anonymous_telemetry.py
@@ -166,26 +166,45 @@ def construct_callback(
 
     if anonymous_telemetry.options.is_default("enabled"):
         logger.warning(
-            "Please either set `enabled = true` in the [anonymous-telemetry] section of "
-            "pants.toml to enable sending anonymous stats to the Pants project to aid "
-            "development, or set `enabled = false` to disable it. No telemetry sent "
-            "for this run. An explicit setting will get rid of this message. "
-            f"{_telemetry_docs_referral}."
+            softwrap(
+                f"""
+                Please either set `enabled = true` in the [anonymous-telemetry] section of
+                pants.toml to enable sending anonymous stats to the Pants project to aid
+                development, or set `enabled = false` to disable it. No telemetry sent
+                for this run. An explicit setting will get rid of this message.
+                {_telemetry_docs_referral}.
+                """
+            )
         )
     if enabled:
         if unhashed_repo_id is None:
             logger.error(
-                'Please set `repo_id = "<uuid>"` in the [anonymous-telemetry] section '
-                "of pants.toml, where `<uuid>` is some fixed random identifier, such as "
-                "one generated by uuidgen. No telemetry will be sent for this run. "
-                f"{_telemetry_docs_referral}."
+                softwrap(
+                    f"""
+                    Please set `repo_id = "<uuid>"` in the [anonymous-telemetry] section
+                    of pants.toml, where `<uuid>` is some fixed random identifier, such as
+                    one generated by uuidgen.
+
+                    Example (using a randomly generated UUID):
+
+                        [anonymous-telemetry]
+                        repo_id = "{uuid.uuid4()}"
+
+                    No telemetry will be sent for this run.
+                    {_telemetry_docs_referral}.
+                    """
+                )
             )
             enabled = False
         elif not AnonymousTelemetryCallback.validate_repo_id(unhashed_repo_id):
             logger.error(
-                "The repo_id option in the [anonymous-telemetry] scope must be between 30 and "
-                "60 characters long, and consist of only alphanumeric characters, dashes "
-                "and underscores."
+                softwrap(
+                    """
+                    The repo_id option in the [anonymous-telemetry] scope must be between 30 and
+                    60 characters long, and consist of only alphanumeric characters, dashes
+                    and underscores.
+                    """
+                )
             )
             enabled = False
 


Test patch: