Conversation
…etadata for Azure Flex Consumption Functions
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7100 +/- ##
==========================================
- Coverage 84.76% 83.87% -0.90%
==========================================
Files 521 521
Lines 22151 22153 +2
==========================================
- Hits 18776 18580 -196
- Misses 3375 3573 +198 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Overall package sizeSelf size: 4.34 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 1.15.0 | 127.66 kB | 856.24 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
This comment has been minimized.
This comment has been minimized.
BenchmarksBenchmark execution time: 2025-12-16 22:29:43 Comparing candidate commit 293e799 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 290 metrics, 30 unstable metrics. |
|
@codex review |
|
To use Codex here, create a Codex account and connect to github. |
* Check DD_AZURE_RESOURCE_GROUP env var when detecting resource group metadata for Azure Flex Consumption Functions * Add tests, add DD_AZURE_RESOURCE_GROUP to supported configurations * Make flex consumption function detection a function
* Check DD_AZURE_RESOURCE_GROUP env var when detecting resource group metadata for Azure Flex Consumption Functions * Add tests, add DD_AZURE_RESOURCE_GROUP to supported configurations * Make flex consumption function detection a function
* Check DD_AZURE_RESOURCE_GROUP env var when detecting resource group metadata for Azure Flex Consumption Functions * Add tests, add DD_AZURE_RESOURCE_GROUP to supported configurations * Make flex consumption function detection a function
What does this PR do?
If we're in an Azure Function on the flex consumption plan, set
aas.resource.groupto theDD_AZURE_RESOURCE_GROUPenv var.Motivation
aas.resource.grouptag in profiles for Node.js Azure Functions on the Flex Consumption Plan is currently being set toflexWEBSITE_RESOURCE_GROUPenv var, and the structure of theWEBSITE_OWNER_NAMEenv var is different from all other Azure Function hosting plans. As a result, we ask customers to manually set DD_AZURE_RESOURCE_GROUP as an app settingTesting
aas.resource.groupDeployed a Node.js Windows Web App with the site extension, a Linux Web App with sidecar, and a Azure Container App to make sure this doesn't affect their profile tags
How to test
npm pack.tgzfile to the root of your app directorypackage.jsonto have the tracer point to this file:"dd-trace": file:<name_of_tgz_file>NODE_PATH=C:\home\site\wwwroot\node_modules. If deploying apps using in-process, update the Dockerfile to also copy the.tgzfile before it runsnpm ci