Sending Traces to Zipkin
Using the CLI If you are creating your project using the Micronaut CLI, supply the
|
To send tracing spans to Zipkin the minimal configuration requires you add the following dependencies to build.gradle
or pom.xml
:
Adding Zipkin Dependencies
runtime 'io.zipkin.brave:brave-instrumentation-http'
runtime 'io.zipkin.reporter2:zipkin-reporter'
compile 'io.opentracing.brave:brave-opentracing'
Then you need to enable ZipKin tracing in your configuration (potentially only your production configuration):
application.yml
tracing:
zipkin:
enabled: true
Or alternatively if you have the Micronaut CLI installed you can configure Zipkin when creating your service with: mn create-app hello-world —features tracing-zipkin |