ragas icon indicating copy to clipboard operation
ragas copied to clipboard

Support DO_NOT_TRACK and DISABLE_TELEMETRY env vars

Open ahgraber opened this issue 9 months ago • 2 comments

Describe the Feature People seem to be standardizing on the DO_NOT_TRACK=1 and/or DISABLE_TELEMETRY=1 Would be nice respect these environment variables and disable tracking if either has a non-empty value.

Why is the feature important for you? Reduces mental overhead of managing each project's specific do not track env var (currently RAGAS_DO_NOT_TRACK)

Additional context see also: https://github.com/huggingface/huggingface_hub/issues/1917 https://git.eeqj.de/sneak/consoledonottrack.com/src/branch/master/index.markdown

ahgraber avatar Feb 20 '26 18:02 ahgraber

Hi, I'd like to work on this. I've located the relevant code in src/ragas/_analytics.py in the do_not_track() function and have a fix ready that adds support for both DO_NOT_TRACK and DISABLE_TELEMETRY environment variables while keeping the existing RAGAS_DO_NOT_TRACK behavior intact. Can I go ahead and open a PR?

mdhamid5898 avatar Feb 24 '26 14:02 mdhamid5898

PR #2756 adds support for DO_NOT_TRACK=1, DISABLE_TELEMETRY=1, RAGAS_ANALYTICS_ENABLED=false and RAGAS_TELEMETRY_ENABLED=false as part of a broader telemetry reliability fix.

aashishkumar-tech avatar Jun 01 '26 00:06 aashishkumar-tech