Skip to content

Commit efbf8bc

Browse files
committed
refactor(resource-detector-gcp): migrate away from getEnv()
1 parent 7a1e8b3 commit efbf8bc

File tree

1 file changed

+1
-1
lines changed
  • detectors/node/opentelemetry-resource-detector-gcp/src/detectors

1 file changed

+1
-1
lines changed

detectors/node/opentelemetry-resource-detector-gcp/src/detectors/GcpDetector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class GcpDetector implements DetectorSync {
7979
attributes[SEMRESATTRS_CLOUD_AVAILABILITY_ZONE] = zoneId;
8080
attributes[SEMRESATTRS_CLOUD_PROVIDER] = CLOUDPROVIDERVALUES_GCP;
8181

82-
if (getEnv().KUBERNETES_SERVICE_HOST)
82+
if (process.env.KUBERNETES_SERVICE_HOST)
8383
this._addK8sAttributes(attributes, clusterName);
8484

8585
return attributes;

0 commit comments

Comments
 (0)