Skip to content

Commit 615d904

Browse files
authored
Merge pull request #109446 from MS-jgol/tabbed-connection-strings
Convert connection strings doc to tabbed version
2 parents 882fabd + e0708f0 commit 615d904

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/azure-monitor/app/sdk-connection-string.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ In this example, this connection string specifies explicit overrides for every s
147147

148148
Connection Strings are supported in the following SDK versions:
149149
- .NET and .NET Core v2.12.0
150-
- Java v2.5.1
150+
- Java v2.5.1 and Java 3.0
151151
- Javascript v2.3.0
152152
- NodeJS v1.5.0
153153
- Python v1.0.0
@@ -160,7 +160,7 @@ A connection string can be set by either in code, environment variable, or confi
160160

161161
- Connection String: `APPLICATIONINSIGHTS_CONNECTION_STRING`
162162

163-
### .Net SDK example
163+
# [.NET/.NetCore](#tab/net)
164164

165165
TelemetryConfiguration.ConnectionString: https://github.com/microsoft/ApplicationInsights-dotnet/blob/add45ceed35a817dc7202ec07d3df1672d1f610d/BASE/src/Microsoft.ApplicationInsights/Extensibility/TelemetryConfiguration.cs#L271-L274
166166

@@ -193,10 +193,10 @@ NetCore config.json:
193193
```
194194

195195

196-
### Java SDK example
196+
# [Java](#tab/java)
197197

198198

199-
Java Explicitly Set:
199+
Java (v2.5.x) Explicitly Set:
200200
```java
201201
TelemetryConfiguration.getActive().setConnectionString("InstrumentationKey=00000000-0000-0000-0000-000000000000");
202202
```
@@ -209,7 +209,7 @@ ApplicationInsights.xml
209209
</ApplicationInsights>
210210
```
211211

212-
### Javascript SDK example
212+
# [JavaScript](#tab/js)
213213

214214
Important: Javascript doesn't support the use of Environment Variables.
215215

@@ -238,15 +238,15 @@ appInsights.loadAppInsights();
238238
appInsights.trackPageView();
239239
```
240240

241-
### Node SDK example
241+
# [Node.js](#tab/nodejs)
242242

243243
```javascript
244244
const appInsights = require("applicationinsights");
245245
appInsights.setup("InstrumentationKey=00000000-0000-0000-0000-000000000000;");
246246
appInsights.start();
247247
```
248248

249-
### Python SDK example
249+
# [Python](#tab/python)
250250

251251
We recommend users set the environment variable.
252252

0 commit comments

Comments
 (0)