You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/custom-endpoints.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,12 @@ ms.date: 07/26/2019
10
10
11
11
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.
12
12
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
+
13
16
## SDK code changes
14
17
15
-
### .NET with applicationinsights.config
18
+
#[.NET](#tab/net)
16
19
17
20
> [!NOTE]
18
21
> 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
37
40
</ApplicationInsights>
38
41
```
39
42
40
-
### ASP.NET Core
43
+
#[.NET Core](#tab/netcore)
41
44
42
45
Modify the appsettings.json file in your project as follows to adjust the main endpoint:
43
46
@@ -65,6 +68,8 @@ using Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.QuickPuls
65
68
//Place in the ConfigureServices method. Place this before services.AddApplicationInsightsTelemetry("instrumentation key"); if it's present
66
69
```
67
70
71
+
# [Azure Functions](#tab/functions)
72
+
68
73
### Azure Functions v2.x
69
74
70
75
Install the following packages in your function project:
@@ -116,7 +121,7 @@ namespace Example
116
121
}
117
122
```
118
123
119
-
### Java
124
+
#[Java](#tab/java)
120
125
121
126
Modify the applicationinsights.xml file to change the default endpoint address.
122
127
@@ -151,7 +156,7 @@ Modify the `application.properties` file and add:
Live Metrics Endpoint: "QuickPulse_Endpoint_Address"
171
176
```
172
177
173
-
### JavaScript
178
+
#[JavaScript](#tab/js)
174
179
175
180
```javascript
176
181
<script type="text/javascript">
@@ -183,7 +188,7 @@ Live Metrics Endpoint: "QuickPulse_Endpoint_Address"
183
188
</script>
184
189
```
185
190
186
-
### Python
191
+
#[Python](#tab/python)
187
192
188
193
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)
0 commit comments