Closed
Description
Expected behavior
Default configuration file applicationinsights.json
present in the same directory as the agent should be automatically picked-up by the agent when the application starts.
Actual behavior
The default application insights configuration is being applied and the configuration file is being ignored.
To Reproduce
- Provide a configuration file that sits next to the agent where you change the selfDiagnostics level to DEBUG.
- Do NOT specify the path to the configuration file using the environment variable
APPLICATIONINSIGHTS_CONFIGURATION_FILE
"selfDiagnostics": {
"destination": "console",
"level": "DEBUG"
}
System information
Please provide the following information:
- SDK Version: 3.4.16
- OS type and version: Debian GNU/Linux 11 (bullseye)
- Application Server type and version (if applicable): OpenJDK Runtime Environment 18.9 (build 11.0.16+8)
- Using spring-boot? Yes
Logs
Picked up JAVA_TOOL_OPTIONS: -Xms512m -Xmx1024m -XX:MaxMetaspaceSize=300m -javaagent:/applicationinsights-agent-3.4.16.jar
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
2023-09-11 09:05:27.791Z INFO c.m.applicationinsights.agent - Application Insights Java Agent 3.4.16 started successfully (PID 1, JVM running for 3.386 s)
2023-09-11 09:05:27.796Z INFO c.m.applicationinsights.agent - Java version: 11.0.16, vendor: Oracle Corporation, home: /usr/local/openjdk-11