Skip to content

Commit 096f5eb

Browse files
committed
update connection strings doc
1 parent 96214ab commit 096f5eb

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

articles/azure-monitor/app/custom-endpoints.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ ms.date: 07/26/2019
1010

1111
To send data from Application Insights to certain regions, you'll need to override the default endpoint addresses. Each SDK requires slightly different modifications, all of which are described in this article. These changes require adjusting the sample code and replacing the placeholder values for `QuickPulse_Endpoint_Address`, `TelemetryChannel_Endpoint_Address`, and `Profile_Query_Endpoint_address` with the actual endpoint addresses for your specific region. The end of this article contains links to the endpoint addresses for regions where this configuration is required.
1212

13+
> [!NOTE]
14+
> [Connection strings](https://docs.microsoft.com/azure/azure-monitor/app/sdk-connection-string?tabs=net) are the new preferred method of setting custom endpoints within Application Insights.
15+
1316
## SDK code changes
1417

15-
### .NET with applicationinsights.config
18+
# [.NET](#tab/net)
1619

1720
> [!NOTE]
1821
> The applicationinsights.config file is automatically overwritten anytime a SDK upgrade is performed. After performing an SDK upgrade be sure to re-enter the region specific endpoint values.
@@ -37,7 +40,7 @@ To send data from Application Insights to certain regions, you'll need to overri
3740
</ApplicationInsights>
3841
```
3942

40-
### ASP.NET Core
43+
# [.NET Core](#tab/netcore)
4144

4245
Modify the appsettings.json file in your project as follows to adjust the main endpoint:
4346

@@ -65,6 +68,8 @@ using Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPuls
6568
//Place in the ConfigureServices method. Place this before services.AddApplicationInsightsTelemetry("instrumentation key"); if it's present
6669
```
6770

71+
# [Azure Functions](#tab/functions)
72+
6873
### Azure Functions v2.x
6974

7075
Install the following packages in your function project:
@@ -116,7 +121,7 @@ namespace Example
116121
}
117122
```
118123

119-
### Java
124+
# [Java](#tab/java)
120125

121126
Modify the applicationinsights.xml file to change the default endpoint address.
122127

@@ -151,7 +156,7 @@ Modify the `application.properties` file and add:
151156
azure.application-insights.channel.in-process.endpoint-address= TelemetryChannel_Endpoint_Address
152157
```
153158

154-
### Node.js
159+
# [Node.js](#tab/nodejs)
155160

156161
```javascript
157162
var appInsights = require("applicationinsights");
@@ -170,7 +175,7 @@ Profile Endpoint: "Profile_Query_Endpoint_address"
170175
Live Metrics Endpoint: "QuickPulse_Endpoint_Address"
171176
```
172177

173-
### JavaScript
178+
# [JavaScript](#tab/js)
174179

175180
```javascript
176181
<script type="text/javascript">
@@ -183,7 +188,7 @@ Live Metrics Endpoint: "QuickPulse_Endpoint_Address"
183188
</script>
184189
```
185190

186-
### Python
191+
# [Python](#tab/python)
187192

188193
For guidance on modifying the ingestion endpoint for the opencensus-python SDK consult the [opencensus-python repo.](https://github.com/census-instrumentation/opencensus-python/blob/af284a92b80bcbaf5db53e7e0813f96691b4c696/contrib/opencensus-ext-azure/opencensus/ext/azure/common/__init__.py)
189194

0 commit comments

Comments
 (0)