@opentelemetry/resource-detector-gcp
Advanced tools
Comparing version 0.27.4 to 0.27.5
@@ -57,3 +57,3 @@ "use strict"; | ||
semantic_conventions_1.CloudProviderValues.GCP; | ||
if (core_1.getEnv().KUBERNETES_SERVICE_HOST) | ||
if ((0, core_1.getEnv)().KUBERNETES_SERVICE_HOST) | ||
this._addK8sAttributes(attributes, clusterName); | ||
@@ -64,3 +64,3 @@ return new resources_1.Resource(attributes); | ||
_addK8sAttributes(attributes, clusterName) { | ||
const env = core_1.getEnv(); | ||
const env = (0, core_1.getEnv)(); | ||
attributes[semantic_conventions_1.SemanticResourceAttributes.K8S_CLUSTER_NAME] = clusterName; | ||
@@ -67,0 +67,0 @@ attributes[semantic_conventions_1.SemanticResourceAttributes.K8S_NAMESPACE_NAME] = env.NAMESPACE; |
{ | ||
"name": "@opentelemetry/resource-detector-gcp", | ||
"version": "0.27.4", | ||
"version": "0.27.5", | ||
"description": "OpenTelemetry SDK resource detector for GCP", | ||
@@ -45,3 +45,3 @@ "main": "build/src/index.js", | ||
"@opentelemetry/api": "^1.0.0", | ||
"@opentelemetry/contrib-test-utils": "^0.33.0", | ||
"@opentelemetry/contrib-test-utils": "^0.33.1", | ||
"@types/mocha": "8.2.3", | ||
@@ -56,3 +56,3 @@ "@types/node": "18.11.7", | ||
"ts-mocha": "10.0.0", | ||
"typescript": "4.3.5" | ||
"typescript": "4.4.4" | ||
}, | ||
@@ -70,3 +70,3 @@ "peerDependencies": { | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/detectors/node/opentelemetry-resource-detector-gcp#readme", | ||
"gitHead": "59fa57cfd0dff4ae0e6f3833dff73c55dfd79ee5" | ||
"gitHead": "63e0fc9b6b862f74304abf0343c506a5bd415191" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26570