diff --git a/dev-constraints.txt b/dev-constraints.txt index 34925ff5..f5d550d1 100644 --- a/dev-constraints.txt +++ b/dev-constraints.txt @@ -1,4 +1,4 @@ -black==21.5b2 +black==22.3.0 flake8==3.9.2 isort==5.8.0 mypy==0.910 diff --git a/opentelemetry-exporter-gcp-monitoring/setup.cfg b/opentelemetry-exporter-gcp-monitoring/setup.cfg index d491d149..ca8c07b3 100644 --- a/opentelemetry-exporter-gcp-monitoring/setup.cfg +++ b/opentelemetry-exporter-gcp-monitoring/setup.cfg @@ -26,8 +26,8 @@ package_dir= packages=find_namespace: install_requires = google-cloud-monitoring <2.0.0 - opentelemetry-api ~= 1.10a0 - opentelemetry-sdk ~= 1.10a0 + opentelemetry-api == 1.10a0 + opentelemetry-sdk == 1.10a0 [options.packages.find] where = src diff --git a/opentelemetry-exporter-gcp-monitoring/src/opentelemetry/exporter/cloud_monitoring/__init__.py b/opentelemetry-exporter-gcp-monitoring/src/opentelemetry/exporter/cloud_monitoring/__init__.py index a8ac797f..8227cfbe 100644 --- a/opentelemetry-exporter-gcp-monitoring/src/opentelemetry/exporter/cloud_monitoring/__init__.py +++ b/opentelemetry-exporter-gcp-monitoring/src/opentelemetry/exporter/cloud_monitoring/__init__.py @@ -41,7 +41,7 @@ MAX_BATCH_WRITE = 200 WRITE_INTERVAL = 10 UNIQUE_IDENTIFIER_KEY = "opentelemetry_id" -NANOS_PER_SECOND = 10 ** 9 +NANOS_PER_SECOND = 10**9 OT_RESOURCE_LABEL_TO_GCP = { "gce_instance": { @@ -95,7 +95,7 @@ def __init__( self.unique_identifier = None if add_unique_identifier: self.unique_identifier = "{:08x}".format( - random.randint(0, 16 ** 8) + random.randint(0, 16**8) ) (