You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When enabling Application Insights Java Agent (3.4.17) in Spring Boot (2.7.17) via Docker entry point, it should detect the configuration file (/opt/applicationInsightsAgent/applicationinsights.json) located in the same directory as the agent (/opt/applicationInsightsAgent/applicationinsights-agent.jar).
Below is an example of my applicationinsights.json
This setup was working in Application Insights Java Agent 3.4.13.
Actual behavior
Application Insights Java Agent throws an the error No connection string provided.
If I define the environment variable APPLICATIONINSIGHTS_CONFIGURATION_FILE with the value /opt/applicationInsightsAgent/applicationinsights.json, Application Insights Java Agent loads without any error.
Here's evidence that the agent and configuration file are in the same directory of the container running within AKS.
[root@redacted-66895b5f76-jfdh8 /]# ls -la /opt/applicationInsightsAgent/
total 39768
drwxr-xr-x 1 root root 4096 Oct 20 00:36 .
drwxr-xr-x 1 root root 4096 Jan 1 1970 ..
-rw-r--r-- 1 root root 40703707 Jan 1 1970 applicationinsights-agent.jar
-rw-r--r-- 0 root root 786 Oct 20 00:36 applicationinsights.json
To Reproduce
Submitting a PR with an example reproducing the issue in this repository would make it easier for the Application Insight maintainers to help you. Before doing this, you have to fork this repository.
System information
Please provide the following information:
SDK Version: 3.14.17
OS type and version: RHEL UBI 8.6
Application Server type and version (if applicable):
Using spring-boot? yes
Additional relevant libraries (with version, if applicable):
Expected behavior
When enabling Application Insights Java Agent (
3.4.17
) in Spring Boot (2.7.17
) via Docker entry point, it should detect the configuration file (/opt/applicationInsightsAgent/applicationinsights.json
) located in the same directory as the agent (/opt/applicationInsightsAgent/applicationinsights-agent.jar
).Below is an example of my
applicationinsights.json
This setup was working in Application Insights Java Agent
3.4.13
.Actual behavior
Application Insights Java Agent throws an the error
No connection string provided
.If I define the environment variable
APPLICATIONINSIGHTS_CONFIGURATION_FILE
with the value/opt/applicationInsightsAgent/applicationinsights.json
, Application Insights Java Agent loads without any error.Here's evidence that the agent and configuration file are in the same directory of the container running within AKS.
To Reproduce
Submitting a PR with an example reproducing the issue in this repository would make it easier for the Application Insight maintainers to help you. Before doing this, you have to fork this repository.
System information
Please provide the following information:
3.14.17
Logs
Turn on SDK logs and attach/paste them to the issue. If using an application server, also attach any relevant server logs.
Be sure to remove any private information from the logs before posting!
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: