设置spring项目zipkin采样比例

zipkin采样比例

spring开启zipkin 模块log

logging:
    level:
        org.springframework.cloud.sleuth.zipkin: DEBUG

zipkin采样比例配置

spring:
    sleuth:
        sampler:
            percentage: 1.0 # 采样比例100%
    zipkin:
        base-url: http://localhost:9411
        enabled: true
        locator:
            discovery:
                enabled: true