Skip to content

Latest commit

 

History

History
27 lines (26 loc) · 3 KB

File metadata and controls

27 lines (26 loc) · 3 KB

This project represents a library packaged as a Spring Boot Starter. It contains the following functionality, implemented for BOTH the servlet & reactive stacks. All of the auto-configuration is driven from the TracingAutoConfiguration class.

  • Distributed Tracing via Zipkin / Spring Cloud Sleuth / P6Spy
    • Offer a configuration property mycompany.myframework.tracing.enable-response-headers
    • For each span, add a tag with the key spring.profiles.active and the value is a comma-separated list of the current active profiles, as reported by the spring.profiles.active property
    • Default the spring.sleuth.trace-id128 property to true if it has not explicitly been set
    • Default the spring.sleuth.sampler.probability property to 0.5 if it has not explicitly been set
    • Configure the p6spy.config.modulelistsystem property to control which P6Spy modules are activated
    • Configure the default logging pattern to include the following information
      • Trace id
      • Span id
      • Parent span id (if applicable)
      • Whether or not the span will be exported (spanExportable)
      • See logback-spring.xml
        • This could have easily been re-written as code rather than having a Logback-specific configuration file.
    • By default no spring.zipkin.baseUrl property is specified. An application would have to configure this property manually to specify the Zipkin server location.
      • This would be trivial to do by default by the library if a known Zipkin location existed within an environment