Brave / Sleuth Support

<- Back to Index

This page focuses on the integration with brave / Spring Cloud Sleuth. This is an optional feature.

Table of Contents


grpc-spring-boot-starter provides automatic support for Brave Instrumentation: GRPC. However, there are two requirements:

  1. You need the dependencies for Brave on the classpath.
  2. You need a Tracing bean in your application context. If you have Spring Cloud Sleuth in your classpath, it will automatically configure this bean for you.


You can add the required dependencies for brave to Maven like this:


and to Gradle like this:


Spring Cloud Sleuth

You can add sleuth to your application using Maven like this:


and using Gradle like this:


Please refer to the official documentation on how to set up/configure Sleuth.


You can opt-out from the grpc-tracing using the following property:


Additional Notes

Spring-Cloud-Sleuth provides a few classes such as SpringAwareManagedChannelBuilder, those classes solely exists for compatibility reasons with a different library. Do not use them with this library. grpc-spring-boot-starter provides the same/extended functionality out of the box with the GrpcChannelFactory and related classes. See also sleuth’s javadoc note.

<- Back to Index