更新sql和代码规范修改
This commit is contained in:
@ -15,7 +15,8 @@ import org.springframework.context.annotation.Bean;
|
||||
*/
|
||||
@AutoConfiguration
|
||||
@ConditionalOnClass({MeterRegistryCustomizer.class})
|
||||
@ConditionalOnProperty(prefix = "yshop.metrics", value = "enable", matchIfMissing = true) // 允许使用 yshop.metrics.enable=false 禁用 Metrics
|
||||
@ConditionalOnProperty(prefix = "yshop.metrics", value = "enable", matchIfMissing = true)
|
||||
// 允许使用 yshop.metrics.enable=false 禁用 Metrics
|
||||
public class YshopMetricsAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@ -4,7 +4,7 @@ import java.lang.annotation.*;
|
||||
|
||||
/**
|
||||
* 打印业务编号 / 业务类型注解
|
||||
*
|
||||
* <p>
|
||||
* 使用时,需要设置 SkyWalking OAP Server 的 application.yaml 配置文件,修改 SW_SEARCHABLE_TAG_KEYS 配置项,
|
||||
* 增加 biz.type 和 biz.id 两值,然后重启 SkyWalking OAP Server 服务器。
|
||||
*
|
||||
|
||||
@ -19,7 +19,7 @@ public class TracerFrameworkUtils {
|
||||
* 将异常记录到 Span 中,参考自 com.aliyuncs.utils.TraceUtils
|
||||
*
|
||||
* @param throwable 异常
|
||||
* @param span Span
|
||||
* @param span Span
|
||||
*/
|
||||
public static void onError(Throwable throwable, Span span) {
|
||||
Tags.ERROR.set(span, Boolean.TRUE);
|
||||
|
||||
Reference in New Issue
Block a user