File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
articles/azure-monitor/app Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -65,18 +65,20 @@ Connection string is required. You can find your connection string in your Appli
65
65
You can also set the connection string using the environment variable ` APPLICATIONINSIGHTS_CONNECTION_STRING `
66
66
(which will then take precedence over connection string specified in the json configuration).
67
67
68
- you can also set the connectiong string by loading it from a file.
68
+ You can also set the connection string by specifying a file to load the connection string from.
69
+
70
+ If you specify a relative path, it will be resolved relative to the directory where ` applicationinsights-agent-3.2.6.jar ` is located.
69
71
70
72
``` json
71
73
{
72
74
"connectionString" : " ${file:connection-string-file.txt}"
73
75
}
74
76
```
75
77
76
- ` connection-string- file.txt ` can be an absolute or relative path to the the agent jar location. It only contains the connection string:
78
+ The file should contain only the connection string, for example:
77
79
78
80
```
79
- InstrumentationKey=...;IngestionEndpoint=...
81
+ InstrumentationKey=...
80
82
```
81
83
82
84
Not setting the connection string will disable the Java agent.
You can’t perform that action at this time.
0 commit comments