• Yorick Peterse's avatar
    Removed tracking of raw SQL queries · a6c60127
    Yorick Peterse authored
    This particular setup had 3 problems:
    
    1. Storing SQL queries as tags is very inefficient as InfluxDB ends up
       indexing every query (and they can get pretty large). Storing these
       as values instead means we can't always display the SQL as easily.
    2. We already instrument ActiveRecord query methods, thus we already
       have timing information about database queries.
    3. SQL obfuscation is difficult to get right and I'd rather not expose
       sensitive data by accident.
    a6c60127
metrics.rb 1.83 KB