@opentelemetry/resource-detector-azure
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -37,3 +37,4 @@ "use strict"; | ||
const websiteSiteName = process.env[types_1.WEBSITE_SITE_NAME]; | ||
if (websiteSiteName) { | ||
const isAzureFunction = !!process.env[types_1.FUNCTIONS_VERSION]; | ||
if (websiteSiteName && !isAzureFunction) { | ||
attributes = Object.assign(Object.assign({}, attributes), { [semantic_conventions_1.SemanticResourceAttributes.SERVICE_NAME]: websiteSiteName }); | ||
@@ -40,0 +41,0 @@ attributes = Object.assign(Object.assign({}, attributes), { [semantic_conventions_1.SemanticResourceAttributes.CLOUD_PROVIDER]: semantic_conventions_1.CloudProviderValues.AZURE }); |
{ | ||
"name": "@opentelemetry/resource-detector-azure", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "OpenTelemetry SDK resource detector for Azure", | ||
@@ -35,3 +35,3 @@ "main": "build/src/index.js", | ||
"@opentelemetry/api": "^1.0.0", | ||
"@opentelemetry/contrib-test-utils": "^0.35.0", | ||
"@opentelemetry/contrib-test-utils": "^0.35.1", | ||
"@types/mocha": "8.2.3", | ||
@@ -52,3 +52,3 @@ "@types/node": "18.6.5", | ||
"homepage": "https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/detectors/node/opentelemetry-resource-detector-azure#readme", | ||
"gitHead": "c7e7000b7bf79b0b107c448b403c2613a9b9e2c1" | ||
"gitHead": "90928231259bbbdf6980f184bc7420503048b77e" | ||
} |
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
69113
512
12