diff --git a/opencensus/metrics/export/metric.py b/opencensus/metrics/export/metric.py index c41e2dd4a..7ef12d27f 100644 --- a/opencensus/metrics/export/metric.py +++ b/opencensus/metrics/export/metric.py @@ -19,9 +19,9 @@ class Metric(object): """A collection of time series data and label metadata. This class implements the spec for v1 Metrics as of opencensus-proto - release v0.0.2. See opencensus-proto for details: + release v0.1.0. See opencensus-proto for details: - https://github.com/census-instrumentation/opencensus-proto/blob/24333298e36590ea0716598caacc8959fc393c48/src/opencensus/proto/metrics/v1/metrics.proto#33 + https://github.com/census-instrumentation/opencensus-proto/blob/v0.1.0/src/opencensus/proto/metrics/v1/metrics.proto#L35 Defines a Metric which has one or more timeseries. diff --git a/opencensus/metrics/export/metric_descriptor.py b/opencensus/metrics/export/metric_descriptor.py index 99e3b6944..366d3d8ca 100644 --- a/opencensus/metrics/export/metric_descriptor.py +++ b/opencensus/metrics/export/metric_descriptor.py @@ -38,7 +38,7 @@ class MetricDescriptorType(object): MetricDescriptorType is an enum of valid MetricDescriptor type values. See opencensus-proto for details: - https://github.com/census-instrumentation/opencensus-proto/blob/24333298e36590ea0716598caacc8959fc393c48/src/opencensus/proto/metrics/v1/metrics.proto#L73 # noqa + https://github.com/census-instrumentation/opencensus-proto/blob/v0.1.0/src/opencensus/proto/metrics/v1/metrics.proto#L79 A gauge is an instantaneous measurement of a value. @@ -102,9 +102,9 @@ class MetricDescriptor(object): """Defines a metric type and its schema. This class implements the spec for v1 MetricDescriptors, as of - opencensus-proto release v0.0.2. See opencensus-proto for details: + opencensus-proto release v0.1.0. See opencensus-proto for details: - https://github.com/census-instrumentation/opencensus-proto/blob/24333298e36590ea0716598caacc8959fc393c48/src/opencensus/proto/metrics/v1/metrics.proto#L53 # noqa + https://github.com/census-instrumentation/opencensus-proto/blob/v0.1.0/src/opencensus/proto/metrics/v1/metrics.proto#L59 :type name: str :param name: The metric type, including its DNS name prefix. It must be diff --git a/opencensus/metrics/export/time_series.py b/opencensus/metrics/export/time_series.py index 6d1718d47..c5923fec6 100644 --- a/opencensus/metrics/export/time_series.py +++ b/opencensus/metrics/export/time_series.py @@ -17,9 +17,9 @@ class TimeSeries(object): """Time series data for a given metric and time interval. This class implements the spec for v1 TimeSeries structs as of - opencensus-proto release v0.0.2. See opencensus-proto for details: + opencensus-proto release v0.1.0. See opencensus-proto for details: - https://github.com/census-instrumentation/opencensus-proto/blob/24333298e36590ea0716598caacc8959fc393c48/src/opencensus/proto/metrics/v1/metrics.proto#L112 + https://github.com/census-instrumentation/opencensus-proto/blob/v0.1.0/src/opencensus/proto/metrics/v1/metrics.proto#L132 A TimeSeries is a collection of data points that describes the time-varying values of a metric. diff --git a/opencensus/metrics/export/value.py b/opencensus/metrics/export/value.py index 82c3fba53..8ba68fd6c 100644 --- a/opencensus/metrics/export/value.py +++ b/opencensus/metrics/export/value.py @@ -13,9 +13,9 @@ # limitations under the License. """ The classes in this module implement the spec for v1 Metrics as of -opencensus-proto release v0.0.2. See opencensus-proto for details: +opencensus-proto release v0.1.0. See opencensus-proto for details: -https://github.com/census-instrumentation/opencensus-proto/blob/24333298e36590ea0716598caacc8959fc393c48/src/opencensus/proto/metrics/v1/metrics.proto +https://github.com/census-instrumentation/opencensus-proto/blob/v0.1.0/src/opencensus/proto/metrics/v1/metrics.proto """ # noqa from copy import copy diff --git a/opencensus/trace/tracestate.py b/opencensus/trace/tracestate.py index 7b86bbdcc..8e328140e 100644 --- a/opencensus/trace/tracestate.py +++ b/opencensus/trace/tracestate.py @@ -47,7 +47,7 @@ def append(self, key, value): # if the tracestate value size is bigger than 512 characters, the tracer # CAN decide to forward the tracestate def is_valid(self): - if len(self) is 0: + if len(self) == 0: return False # there can be a maximum of 32 list-members in a list if len(self) > 32: