Skip to content

5.5.0(OCT 28, 2019)

Compare
Choose a tag to compare
@HaojunRen HaojunRen released this 27 Oct 23:32

Nepxion Discovery 5.5.0 发布

发布日志

功能更新:

  • 增加基于Opentracing调用链的支持,目前支持Uber Jaeger,实现在Spring Cloud Gateway、Zuul和服务上的灰度调用链输出。Opentracing方式不支持Edgware版(Spring Boot 1.x.x),不支持Finchley版(Spring Boot 2.0.x)的Spring Cloud Gateway,除此之外的版本都支持
  • 支持单个或者多个组合的调用链输出
  • 支持服务上调用链节点对异常的输出
  • 增加基于MDC日志调用链的支持,支持日志的灰度调用链输出
  • 增加基于服务名前缀自动创建灰度组名,通过解析服务名前缀来作为服务组名
  • 增加基于Git插件自动创建灰度版本号,通过Git的git.commit.id或者git.build.version或者更多其它字段来作为服务版本号
  • 增加网关释放上下文ThreadLocal的过滤器
  • 修正网关扩展的过滤器顺序
  • 修正GroupKey不为group时候,处理上的Bug
  • 重构元数据处理逻辑

配置更新:

  • 增加如下配置:
# 启动和关闭调用链的日志输出。缺失则默认为false
spring.application.strategy.trace.logger.enabled=true
# 调用链的日志输出中,是否显示MDC前面的Key。缺失则默认为true
# spring.application.strategy.trace.logger.mdc.key.shown=true
# 启动和关闭调用链的Opentracing输出,支持F版或更高版本的配置,其它版本不需要该行配置。缺失则默认为false
# spring.application.strategy.trace.opentracing.enabled=false

# 开启和关闭使用服务名前缀来作为服务组名。缺失则默认为false
# spring.application.group.generator.enabled=true
# 服务名前缀的长度,必须大于0
# spring.application.group.generator.length=15

# 开启和关闭使用Git的git.commit.id或者git.build.version或者更多其它字段来作为服务版本号。缺失则默认为false
# spring.application.git.generator.enabled=true
# 插件git-commit-id-plugin产生git信息文件的输出路径,支持properties和json两种格式,支持classpath:xxx和file:xxx两种路径,这些需要和插件里的配置保持一致。缺失则默认为classpath:git.properties
# spring.application.git.generator.path=classpath:git.properties
# spring.application.git.generator.path=classpath:git.json
# 使用Git的git.commit.id或者git.build.version或者更多其它字段来作为服务版本号。缺失则默认为git.commit.id
# spring.application.git.version.key=git.commit.id
# spring.application.git.version.key=git.build.version

示例更新:

  • 增加Opentracing + Uber Jaeger调用链的示例和相关配置参数
  • 增加MDC日志的示例和相关配置参数
  • 增加Git插件自动创建灰度版本号的示例和相关配置参数
  • 增加于服务名前缀自动创建灰度组名的示例和相关配置参数
  • 增加install-maven.bat和install-maven.sh编译脚本
  • 增加暴露Actuator Endpoint接口的配置
  • 修改配置文件中middleware.host值为localhost
  • 修改相关传递参数,traceid修改为trace-id,spanid修改为span-id
  • 修改loback.xml文件
  • 修改Postman脚本

感谢:

  • 感谢@张顺同学贡献Opentracing相关代码

源码主页

https://github.com/Nepxion/Discovery

指南主页

https://github.com/Nepxion/DiscoveryGuide

文档主页

https://gitee.com/Nepxion/Docs/tree/master/web-doc

其它版本

同时发布的版本,还包括:

  • Nepxion Discovery 4.13.0,支持Finchley版
  • Nepxion Discovery 3.13.0,支持Edgware版