Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.14 KB

spring-how-to-add-brave-tracing.md

File metadata and controls

29 lines (20 loc) · 1.14 KB

Spring - How to add Brave Tracing

Steps

  1. Make sure you have the brave tracing dependency configured, e.g. via Spring Sleuth. See their documentation on how to do this.

  2. Add the brave-extension-spring-boot module

    <dependency>
        <groupId>com.jashmore</groupId>
        <artifactId>brave-extension-spring-boot</artifactId>
        <version>${library.version}</version>
    </dependency>
  3. Now any processing message should have tracing information

Example

See the spring-sleuth-example for a Spring application that has this setup.

Including Brave information in your SQS messages

If you want to include the Trace information into your SQS message so that the message listener continues the trace, you can use the sqs-brave-tracing utility module to add the tracing information to the SQS Message Attributes.

An example of this being done is in the spring-sleuth-example.