minbox-projects / minbox-logging

分布式零侵入式、链路式请求日志分析框架。提供Admin端点进行采集日志、分析日志、日志告警通知、服务性能分析等。通过Admin Ui可查看实时链路日志信息、在线业务服务列表。
https://www.minbox.org/logging/
Apache License 2.0
59 stars 26 forks source link

新增minbox-sequence生成请求编号实现方式 #7

Closed hengboy closed 4 years ago

hengboy commented 4 years ago

minbox-sequence:https://github.com/minbox-projects/minbox-sequence

hengboy commented 4 years ago

LoggingFactoryBean构造函数内进行配置使用。

    /**
     * Examples of classes required for initialization of constructors
     * {@link DefaultLogTraceIdGenerator}
     * {@link DefaultLogSpanIdGenerator}
     * {@link LoggingMemoryCache}
     */
    public LoggingFactoryBean() {
        this.traceGenerator = new MinBoxSequenceLogTraceIdGenerator();
        this.spanGenerator = new MinBoxSequenceLogSpanIdGenerator();
        this.loggingCache = new LoggingMemoryCache();
    }