Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
chore: disable telemetry by default
Browse files Browse the repository at this point in the history
  • Loading branch information
chamini2 committed Nov 9, 2023
1 parent 312fef9 commit 9e3d308
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ def check_stats_enabled() -> bool:
2. If DO_NOT_TRACK is defined, check its value
3. Otherwise use the value in stats_enabled in the config.yaml file
"""

# Disable telemetry entirely for now
return False

if "FAL_STATS_ENABLED" in os.environ:
val = os.environ["FAL_STATS_ENABLED"].lower().strip()
return val != "0" and val != "false" and val != ""
Expand Down
4 changes: 4 additions & 0 deletions projects/adapter/src/fal/dbt/telemetry/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ def check_stats_enabled() -> bool:
2. If DO_NOT_TRACK is defined, check its value
3. Otherwise use the value in stats_enabled in the config.yaml file
"""

# Disable telemetry entirely for now
return False

if "FAL_STATS_ENABLED" in os.environ:
val = os.environ["FAL_STATS_ENABLED"].lower().strip()
return val != "0" and val != "false" and val != ""
Expand Down

0 comments on commit 9e3d308

Please sign in to comment.