File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
articles/azure-monitor/app Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -323,6 +323,34 @@ Cloud role name overrides allow you to override the [default cloud role name](#c
323
323
}
324
324
```
325
325
326
+ ## Connection string configured at runtime
327
+
328
+ Starting from version 3.4.8, if you need the ability to configure the connection string at runtime,
329
+ add this property to your json configuration:
330
+
331
+ ``` json
332
+ {
333
+ "connectionStringConfiguredAtRuntime" : true
334
+ }
335
+ ```
336
+
337
+ and add ` applicationinsights-core ` to your application:
338
+
339
+ ``` xml
340
+ <dependency >
341
+ <groupId >com.microsoft.azure</groupId >
342
+ <artifactId >applicationinsights-core</artifactId >
343
+ <version >3.4.8</version >
344
+ </dependency >
345
+ ```
346
+
347
+ and use the static ` configure(String) ` method in the class
348
+ ` com.microsoft.applicationinsights.connectionstring.ConnectionString ` .
349
+
350
+ > [ !NOTE]
351
+ > Any telemetry that is captured prior to configuring the connection string will be dropped,
352
+ > so it is best to configure it as early as possible in your application startup.
353
+
326
354
## Autocollect InProc dependencies (preview)
327
355
328
356
Starting from version 3.2.0, if you want to capture controller "InProc" dependencies, use the following configuration:
You can’t perform that action at this time.
0 commit comments