Right now, there are several opportunities for the telemetry upload/aggregation process to leave behind artifacts that will never be cleaned up:

  • corrupt counter files
  • upload/<date>.json.lock lock files, if the process is killed during upload
  • load/<date>.json files, if the process is killed during upload
  • old counter files (counters older than 4w are not considered for aggregation)

Furthermore, we never delete local reports, though they cause the local folder to grow, and are likely to become obsolete over time.

The rate of growth of these files is slow, but at some point (1.24 or 1.25), we should design a system for cleaning up automatically.

CC @golang/telemetry

Comment From: gabyhelp

Related Issues and Documentation

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Comment From: findleyr

Closing as a dupe of #63884. Thanks gaby.