Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Report if agent was installed via Azure site extension #2094

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

jtduffy
Copy link
Contributor

@jtduffy jtduffy commented Oct 11, 2024

Resolves #2092

When the agent is installed with the Azure site extension, the following environment variable will be present: NEW_RELIC_METADATA_AZURE_APP_SERVICE_NAME
If this environment variable is present, the following must be added to the environment section of the connect payload

[
  "AzureSiteExtension",
  "AzureSiteExtension"
]

Additionally a supportability metric of Supportability/Java/InstallType/AzureSiteExtension must be reported.

@jtduffy jtduffy requested a review from a team October 11, 2024 14:57
@codecov-commenter
Copy link

codecov-commenter commented Oct 11, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 70.57%. Comparing base (7a8faab) to head (7c01fff).

Files with missing lines Patch % Lines
...va/com/newrelic/agent/environment/Environment.java 40.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2094      +/-   ##
============================================
- Coverage     70.58%   70.57%   -0.02%     
- Complexity     9880     9882       +2     
============================================
  Files           829      829              
  Lines         39961    39966       +5     
  Branches       6081     6082       +1     
============================================
- Hits          28207    28206       -1     
- Misses         9022     9028       +6     
  Partials       2732     2732              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jtduffy jtduffy merged commit 1b7e1b3 into main Oct 15, 2024
111 checks passed
@jtduffy jtduffy deleted the azure-install-type branch October 15, 2024 11:48
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Track azure site extension installs
3 participants