pankajkoti commented on code in PR #39510:
URL: https://github.com/apache/airflow/pull/39510#discussion_r1603666980
##########
airflow/www/views.py:
##########
@@ -217,6 +217,32 @@ def get_safe_url(url):
return redirect_url.geturl()
+def build_scarf_url(dags_count: int) -> str:
+ """Build the URL for the Scarf telemetry collection."""
+ if not settings.is_telemetry_collection_enabled():
+ return ""
+
+ scarf_domain = "https://apacheairflow.gateway.scarf.sh"
+
+ platform_sys, platform_arch = scarf.get_platform_info()
+ db_version = scarf.get_database_version()
+ db_name = scarf.get_database_name()
Review Comment:
```suggestion
db_engine_name = scarf.get_database_engine_name()
```
if the above comment is considered . also same suggestion for similar
occurrences in the PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]