Distributed Tracing

  • Distributed handler chain tracking provides the ability of tracing microservice call relationships and watching processing time. It is used to make it easy for users to check the health of microservices in a distributed environment. This guide will show you how to use the distributed handler chain tracking capabilities provided by mesher.

Foreword

Enable

  • 1 Added zipkin library dependency in mesher main file.

    _ "github.com/go-chassis/go-chassis-plugins/tracing/zipkin"
    
  • 2 Add default handlers in bootstrap.go as shown by the arrows in the figure.

    tracing-func

  • 3 Recompile and replace the executable file of mesher_webapp and mesher_calculator. Then start the mesher service respectively.

  • 4 Running Zipkin Distributed tracking service with docker.

    docker run -d -p 9411:9411 openzipkin/zipkin
    
  • 5 Click on the Submit button to initiate http call.

  • 6 Open http://192.168.88.64:9411 to view the distributed tracking results. You can see the call chains and processing time of http call.

    Distributed tracking rendering 30111

What’s next