OSDN Git Service

Add a field in config to disable/enable the string hashing in metric report.
authorYangster-mac <yanglu@google.com>
Thu, 17 May 2018 22:52:51 +0000 (15:52 -0700)
committerYangster-mac <yanglu@google.com>
Fri, 18 May 2018 17:39:50 +0000 (10:39 -0700)
commit1c58f04cd34291584b7bf2b45a54427e0ef650c8
treedab5a4012531878d059e505525814ae09fa443f4
parent644c94f1251b57e9a08196fb660ab909e9afe5a8
Add a field in config to disable/enable the string hashing in metric report.

Statsd hashes (using its own hashing function) raw strings to reduce the
upload data size when there are duplicate strings in the report. And in cloud,
the clearcut translator would backfill the strings.

In a few droidfood users, we find the translator was unable to do that. While
debugging the root cause, we first decided to provide an option to disable
the hashing from the cloud.

Test: statsd unit test, CTS test, tested manually

BUG: b/79943763
Change-Id: If0359c8cf3f3cf83a2938db9ebf95ea7906f0b0c
cmds/statsd/src/StatsLogProcessor.cpp
cmds/statsd/src/metrics/MetricsManager.cpp
cmds/statsd/src/metrics/MetricsManager.h
cmds/statsd/src/statsd_config.proto
cmds/statsd/tests/e2e/DimensionInCondition_e2e_combination_AND_cond_test.cpp