Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySql dependency tree not available with applicationinsights-agent-3.5.1 #3667

Open
abhikt48 opened this issue Apr 24, 2024 · 4 comments
Open

Comments

@abhikt48
Copy link

Expected behavior

  1. Mule 4 --> MySql dependency should be available in Application Insight (AI).
  2. Java --> End to End transaction should be available for multiple transports (MySQL + Mongo) . This is very less priority for us, just FYI, observed while testing.

Actual behavior

We need to use Mule 4 application to log all logs in Application Insight. As part of testing, we discoverd that MySql dependency is not available in AI, however mongo DB dependency is available. Please refer below image where there is no MySql dependency, dependency is not available without transaction ID as well.

Mule-No-MySql-DependencyTree

Just for replication, I did testing with plain java code and found that both (MySQL and Mongo) dependencies are available in AI. But there is no End To End transaction. Which is quite strange.

Java-Mysql-Dependency

To Reproduce

  1. Java - Refer this repo to replicate java-ai-db-test
  2. Mule - Refer this repo to replicate mule4-ai-db-test

I am not sure, how much comfortable you all with Mule 4. However you can run dependency tree or check if anything is missing in POM.

System information

Please provide the following information:

  • SDK Version: applicationinsights-agent-3.5.1
  • OS type and version: Windows 11
  • Application Server type and version (if applicable):
  • Using spring-boot? : No
  • Additional relevant libraries (with version, if applicable): Mule Server 4.6.1

Please check above information and let me know for any concern.

@abhikt48
Copy link
Author

abhikt48 commented May 8, 2024

Can anyone please take a look on this issue ?

@trask
Copy link
Member

trask commented May 8, 2024

hi @abhikt48, I don't have any good ideas about this, can you enable self-diagnostic logging at TRACE level and attach the applicationinsights.log from the failure case?

@abhikt48
Copy link
Author

@trask I have uploaded logs here applicationinsights.log , could you please check on this.

@trask
Copy link
Member

trask commented May 15, 2024

hi @abhikt48,

since the MySql (jdbc) calls are hidden inside of Mule, it's hard to know if Mule is maybe using some jdbc api that's not instrumented, e.g. open-telemetry/opentelemetry-java-instrumentation#4476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants