From bcda8513ee6beacd0e65096399652996ba8d0823 Mon Sep 17 00:00:00 2001 From: Chris Kleinknecht Date: Fri, 16 Aug 2019 10:56:50 -0700 Subject: [PATCH] 0.7.2 release (#762) --- CHANGELOG.md | 6 ++++++ opencensus/common/monitored_resource/gcp_metadata_config.py | 2 +- opencensus/common/version/__init__.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 239f527d4..a741bbee7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## Unreleased +## 0.7.2 +Released 2019-08-16 + +- Fix GCP resource loading for certain environments + ([#761](https://github.com/census-instrumentation/opencensus-python/pull/761)) + ## 0.7.1 Released 2019-08-05 diff --git a/opencensus/common/monitored_resource/gcp_metadata_config.py b/opencensus/common/monitored_resource/gcp_metadata_config.py index b33f49d2a..0975d7cf4 100644 --- a/opencensus/common/monitored_resource/gcp_metadata_config.py +++ b/opencensus/common/monitored_resource/gcp_metadata_config.py @@ -14,7 +14,7 @@ from opencensus.common.http_handler import get_request -_GCP_METADATA_URI = 'http://metadata/computeMetadata/v1/' +_GCP_METADATA_URI = 'http://metadata.google.internal/computeMetadata/v1/' _GCP_METADATA_URI_HEADER = {'Metadata-Flavor': 'Google'} # ID of the GCP project associated with this resource, such as "my-project" diff --git a/opencensus/common/version/__init__.py b/opencensus/common/version/__init__.py index 752777753..c652125f7 100644 --- a/opencensus/common/version/__init__.py +++ b/opencensus/common/version/__init__.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = '0.7.1' +__version__ = '0.7.2'