diff options
author | Yang Song <songy23@users.noreply.github.com> | 2018-08-08 12:34:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 12:34:25 -0700 |
commit | 18aa2793facbb3d7e252ac32e6bb4d09f08a37ac (patch) | |
tree | b6051b72e59b80c124a573962d70790a64aed671 /buildscripts | |
parent | 43651556393859b342d6db65b11aa6dca61b3678 (diff) | |
download | opencensus-java-18aa2793facbb3d7e252ac32e6bb4d09f08a37ac.tar.gz |
Metrics: Produce and store Metrics in Stats impl. (#1338)
Support recording `Metric`s in stats impl. This works as the following:
- When a `View` is registered, convert that `View` to a `MetricDescriptor` and register it;
- When a `Measurement` along with a `TagContext` are recorded, convert them into a data row consisting of `LabelValue`s and `Point`s;
- If `getMetrics()` is called, convert the `MetricDescriptor`s and data rows into `Metric`s. Then flush all data rows.
This PR only contains internal support in the impl. None of these changes are user-visible yet.
Diffstat (limited to 'buildscripts')
-rw-r--r-- | buildscripts/import-control.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/buildscripts/import-control.xml b/buildscripts/import-control.xml index f69428b3..66c561a4 100644 --- a/buildscripts/import-control.xml +++ b/buildscripts/import-control.xml @@ -168,6 +168,7 @@ General guidelines on imports: <allow pkg="com.google.common"/> <allow pkg="io.opencensus.common"/> <allow pkg="io.opencensus.implcore"/> + <allow pkg="io.opencensus.metrics"/> <allow pkg="io.opencensus.stats"/> <allow pkg="io.opencensus.tags"/> <allow pkg="io.opencensus.trace"/> |