Spring Cloud Gateway添加自定义traceId
网关中增加全局过滤器
@Bean
public GlobalFilter c() {
return (exchange, chain) -> {
exchange.getRequest().mutate().header("traceId", UUID.randomUUID().toString()).build();
return chain.fil...
原创
2019-07-12 14:39:24 ·
7348 阅读 ·
2 评论