Skip to content

Commit

Permalink
docs(dotnet): Update environment variables required for Azure Functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr committed Feb 3, 2025
1 parent 48c60b9 commit 3aa1222
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 79 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Environment variables for Azure function monitoring
metaDescription: "Configure environment variables to monitor your Azure functions with New Relic"
freshnessValidatedDate: never
tags:
- AWS Lambda
- Azure Functions
- Environment Variables
- Configuration
- Secrets Management
Expand Down Expand Up @@ -33,7 +33,7 @@ Environment variables are a way to store configuration and secrets outside of yo
<td>**Required**. Set this to enable the .NET agent.</td>
</tr>
<tr>
<td>`CORECLR_NEWRELIC_HOME`</td>
<td>`CORECLR_NEW_RELIC_HOME`</td>
<td></td>
<td></td>
<td>**Required**. Set this to enable the .NET agent.</td>
Expand All @@ -44,25 +44,12 @@ Environment variables are a way to store configuration and secrets outside of yo
<td></td>
<td>**Required**. Set this to enable the .NET agent.</td>
</tr>

<tr>
<td>`NEW_RELIC_DISTRIBUTED_TRACING_ENABLED`</td>
<td>`true`</td>
<td>`true`, `false`</td>
<td>Generate traces by enabling distributed tracing.</td>
</tr>

<tr>
<td>`NEW_RELIC_APP_NAME`</td>
<td></td>
<td></td>
<td>Set the application name, though it is not used in the New Relic UI.</td>
</tr>
<tr>
<td>`NEW_RELIC_AZURE_FUNCTION_MODE_ENABLED`</td>
<td>`1`</td>
<td>`0`</td>
<td>`1`, `0`</td>
<td>Disable Azure Functions mode by setting the value to `0`.</td>
<td>Enable Azure Functions mode by setting the value to `1`.</td>
</tr>
<tr>
<td>`NEW_RELIC_LOG_DIRECTORY`</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Ensure that you add a comma at the end of the last existing line and update your
"slotSetting": false
},
{
"name": "CORECLR_NEWRELIC_HOME",
"name": "CORECLR_NEW_RELIC_HOME",
"value": "/home/site/wwwroot/newrelic",
"slotSetting": false
},
Expand All @@ -130,73 +130,27 @@ Ensure that you add a comma at the end of the last existing line and update your
"slotSetting": false
},
{
"name": "NEW_RELIC_LICENSE_KEY",
"value": "<your newrelic license key here>",
"slotSetting": false
},
{
"name": "NEWRELIC_LOG_DIRECTORY",
"name": "NEW_RELIC_LOG_DIRECTORY",
"value": "/home/LogFiles/NewRelic",
"slotSetting": false
},
{
"name": "NEWRELIC_LOG_LEVEL",
"value": "info",
"name": "NEW_RELIC_LICENSE_KEY",
"value": "<your newrelic license key here>",
"slotSetting": false
},
}
```

</TabsPageItem>

<TabsPageItem id="windows-configuration">

```json
{
"name": "CORECLR_PROFILER_PATH",
"value": "C:\\home\\NewRelicAgent\\Core\\NewRelic.Profiler.dll",
"slotSetting": false
},
{
"name": "CORECLR_NEWRELIC_HOME",
"value": "C:\\home\\NewRelicAgent\\Core",
"slotSetting": false
},
{
"name": "NEWRELIC_LOG_DIRECTORY",
"value": "C:\\home\\LogFiles\\NewRelic",
"slotSetting": false
},
{
"name": "NEW_RELIC_AZURE_FUNCTION_MODE_ENABLED",
"value": "1",
"slotSetting": false
},
{
"name": "CORECLR_ENABLE_PROFILING",
"value": "1",
"slotSetting": false
},
{
"name": "CORECLR_PROFILER",
"value": "{36032161-FFC0-4B61-B559-F6C5D41BAE5A}",
"slotSetting": false
},
{
"name": "NEW_RELIC_LICENSE_KEY",
"value": "<your newrelic license key here>",
"slotSetting": false
},
{
"name": "NEWRELIC_LOG_LEVEL",
"value": "info",
"slotSetting": false
},
{
"name": "NEW_RELIC_APP_NAME",
"value": "<your app name>",
"slotSetting": false
},

}
```
</TabsPageItem >

Expand All @@ -209,7 +163,7 @@ Ensure that you add a comma at the end of the last existing line and update your
"slotSetting": false
},
{
"name": "CORECLR_NEWRELIC_HOME",
"name": "CORECLR_NEW_RELIC_HOME",
"value": "/usr/local/newrelic-dotnet-agent",
"slotSetting": false
},
Expand All @@ -229,20 +183,16 @@ Ensure that you add a comma at the end of the last existing line and update your
"slotSetting": false
},
{
"name": "NEW_RELIC_LICENSE_KEY",
"value": "<your newrelic license key here>",
"slotSetting": false
},
{
"name": "NEWRELIC_LOG_DIRECTORY",
"name": "NEW_RELIC_LOG_DIRECTORY",
"value": "/home/LogFiles/NewRelic",
"slotSetting": false
},
{
"name": "NEWRELIC_LOG_LEVEL",
"value": "info",
"name": "NEW_RELIC_LICENSE_KEY",
"value": "<your newrelic license key here>",
"slotSetting": false
},
}


```

Expand Down

0 comments on commit 3aa1222

Please sign in to comment.