@@ -147,7 +147,7 @@ In this example, this connection string specifies explicit overrides for every s
147
147
148
148
Connection Strings are supported in the following SDK versions:
149
149
- .NET and .NET Core v2.12.0
150
- - Java v2.5.1
150
+ - Java v2.5.1 and Java 3.0
151
151
- Javascript v2.3.0
152
152
- NodeJS v1.5.0
153
153
- Python v1.0.0
@@ -160,7 +160,7 @@ A connection string can be set by either in code, environment variable, or confi
160
160
161
161
- Connection String: ` APPLICATIONINSIGHTS_CONNECTION_STRING `
162
162
163
- ### .Net SDK example
163
+ # [ .NET/.NetCore ] ( #tab/net )
164
164
165
165
TelemetryConfiguration.ConnectionString: https://github.com/microsoft/ApplicationInsights-dotnet/blob/add45ceed35a817dc7202ec07d3df1672d1f610d/BASE/src/Microsoft.ApplicationInsights/Extensibility/TelemetryConfiguration.cs#L271-L274
166
166
@@ -193,10 +193,10 @@ NetCore config.json:
193
193
```
194
194
195
195
196
- ### Java SDK example
196
+ # [ Java] ( #tab/java )
197
197
198
198
199
- Java Explicitly Set:
199
+ Java (v2.5.x) Explicitly Set:
200
200
``` java
201
201
TelemetryConfiguration . getActive(). setConnectionString(" InstrumentationKey=00000000-0000-0000-0000-000000000000" );
202
202
```
@@ -209,7 +209,7 @@ ApplicationInsights.xml
209
209
</ApplicationInsights >
210
210
```
211
211
212
- ### Javascript SDK example
212
+ # [ JavaScript ] ( #tab/js )
213
213
214
214
Important: Javascript doesn't support the use of Environment Variables.
215
215
@@ -238,15 +238,15 @@ appInsights.loadAppInsights();
238
238
appInsights .trackPageView ();
239
239
```
240
240
241
- ### Node SDK example
241
+ # [ Node.js ] ( #tab/nodejs )
242
242
243
243
``` javascript
244
244
const appInsights = require (" applicationinsights" );
245
245
appInsights .setup (" InstrumentationKey=00000000-0000-0000-0000-000000000000;" );
246
246
appInsights .start ();
247
247
```
248
248
249
- ### Python SDK example
249
+ # [ Python] ( #tab/python )
250
250
251
251
We recommend users set the environment variable.
252
252
0 commit comments