Skip to content

Commit

Permalink
fix(resource-detector-azure): only detect Azure Functions when FUNCTI…
Browse files Browse the repository at this point in the history
…ONS_EXTENSION_VERSION is defined (#1846)
  • Loading branch information
JacksonWeber committed Dec 6, 2023
1 parent 094fd6f commit 8f2a195
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class AzureFunctionsDetector implements DetectorSync {
detect(): IResource {
let attributes = {};
const functionName = process.env[WEBSITE_SITE_NAME];
if (functionName) {
const functionVersion = process.env[FUNCTIONS_VERSION];
const functionVersion = process.env[FUNCTIONS_VERSION];
if (functionName && functionVersion) {
const functionInstance = process.env[WEBSITE_INSTANCE_ID];
const functionMemLimit = process.env[FUNCTIONS_MEM_LIMIT];

Expand Down

0 comments on commit 8f2a195

Please sign in to comment.