Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit daecc37

Browse files
authored
Update GCP metadata URL (#761)
1 parent 49b27ef commit daecc37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opencensus/common/monitored_resource/gcp_metadata_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from opencensus.common.http_handler import get_request
1616

17-
_GCP_METADATA_URI = 'http://metadata/computeMetadata/v1/'
17+
_GCP_METADATA_URI = 'http://metadata.google.internal/computeMetadata/v1/'
1818
_GCP_METADATA_URI_HEADER = {'Metadata-Flavor': 'Google'}
1919

2020
# ID of the GCP project associated with this resource, such as "my-project"

0 commit comments

Comments
 (0)