Sending Traces to Jaeger
Using the CLI If you are creating your project using the Micronaut CLI, supply the
|
To send tracing spans to Jaeger the minimal configuration requires you add the following dependencies to build.gradle
or pom.xml
:
implementation("io.jaegertracing:jaeger-thrift:0.31.0")
<dependency>
<groupId>io.jaegertracing</groupId>
<artifactId>jaeger-thrift</artifactId>
<version>0.31.0</version>
</dependency>
Then you need to enable Jaeger tracing in your configuration (potentially only your production configuration):
application.yml
tracing:
jaeger:
enabled: true
By default Jaeger will be configured to send traces to a locally running Jaeger agent.
Or alternatively if you have the Micronaut CLI installed you can configure Jaeger when creating your service with: mn create-app hello-world —features tracing-jaeger |