Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions opencensus/metrics/export/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
6 changes: 3 additions & 3 deletions opencensus/metrics/export/metric_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions opencensus/metrics/export/time_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions opencensus/metrics/export/value.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion opencensus/trace/tracestate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down