How can I test the Java automatic instrumentation in OpenTelemetry?

Viewed 21

I have a Java application with the GRPC API. And there is in the same repo a Java client library for this application. I am using Maven as a build system.

How can I test that spans are correctly created and the app will work as I expect (i.e. instrumentation doesn't affect the application's logic)?

I tried to play with the agent for testing, but it seems that it should be configured heavily before being used as I can see in the different tests of Gradle plugins.

I have an idea that I should test this only on the integration level (i.e. set up the whole infrastructure for the tracing) but it would be cool to see the mistakes as early as possible :)

Also, I have plans to add the manual instrumentation to this app, because there is a custom Netty-based transport layer to another application and there is custom scheduling logic based on queues.

0 Answers
Related