Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix: improve handling of .NET environments and settings from appsettings.*.json files #2125

Merged
merged 4 commits into from
Dec 7, 2023

Conversation

nr-ahemsath
Copy link
Member

Description

Fixes #2081 by adding appsettings.Production.json to the list of files to search by default for New Relic config settings. In addition, the agent will now look at DOTNET_ENVIRONMENT in addition to ASPNETCORE_ENVIRONMENT to determine the specific environment configured for the agent.

@codecov-commenter
Copy link

codecov-commenter commented Dec 7, 2023

Codecov Report

Merging #2125 (292ad57) into main (7221cd8) will increase coverage by 0.00%.
The diff coverage is 77.77%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2125   +/-   ##
=======================================
  Coverage   81.06%   81.06%           
=======================================
  Files         395      395           
  Lines       24718    24724    +6     
  Branches     2971     2970    -1     
=======================================
+ Hits        20037    20043    +6     
  Misses       3895     3895           
  Partials      786      786           
Files Coverage Δ
.../Configuration/AppSettingsConfigResolveWhenUsed.cs 65.51% <77.77%> (+5.90%) ⬆️

... and 3 files with indirect coverage changes

@nr-ahemsath nr-ahemsath marked this pull request as ready for review December 7, 2023 20:11
@nr-ahemsath nr-ahemsath merged commit 3c21fe9 into main Dec 7, 2023
75 checks passed
@nr-ahemsath nr-ahemsath deleted the bugfix/better-appsettings-environment-handling branch December 7, 2023 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

appsettings.Production.json is not used when using IIS
5 participants