OSDN Git Service

Includes annotations with statsd reports.
authorDavid Chen <dwchen@google.com>
Fri, 30 Mar 2018 22:14:04 +0000 (15:14 -0700)
committerDavid Chen <dwchen@google.com>
Wed, 4 Apr 2018 01:20:40 +0000 (18:20 -0700)
commitfaa1af535bf6ede5fcab2e0bad5f6c16908916a9
tree01fac7dc0d1609da17104e0778c97432e8a8da5e
parenta24ddf58c9b0ba41ee32ce892186ad5b315c9a28
Includes annotations with statsd reports.

It's tricky to determine the source of the metrics on a device
currently since we can take the union of multiple configs and send
only one giant statsd_config into statsd. We will use the int64 field
to track the sub config id's and the int32 field to track the version
for each sub config, but the fields are named more generically as
annotations.

The annotations are available in both the reports and metadata.

Test: Check that all unit-tests pass on marlin-eng
Bug: 77327261
Change-Id: Ic37c549c8b2991676f69948c515156765c9f5108
cmds/statsd/src/guardrail/StatsdStats.cpp
cmds/statsd/src/guardrail/StatsdStats.h
cmds/statsd/src/metrics/MetricsManager.cpp
cmds/statsd/src/metrics/MetricsManager.h
cmds/statsd/src/stats_log.proto
cmds/statsd/src/statsd_config.proto
cmds/statsd/tests/StatsLogProcessor_test.cpp
cmds/statsd/tests/guardrail/StatsdStats_test.cpp