mirror of
https://gitee.com/dromara/dax-pay
synced 2026-08-10 23:01:58 +08:00
fix(tracing): 关闭 OTLP 导出并修正 Spring Boot 4.1 失效属性键
- management.tracing.export.otlp.enabled: false (4.1 标准键,原 management.opentelemetry.tracing.export.otlp.enabled 从未存在) - management.otlp.metrics.export.enabled: false (4.1 起前缀由 management.metrics.export.otlp.* 改为 management.otlp.metrics.export.*) - 消除 otlp-metrics-publisher 周期性 ConnectException WARN
This commit is contained in:
@@ -26,11 +26,18 @@ management:
|
||||
tracing:
|
||||
sampling:
|
||||
probability: 1.0
|
||||
opentelemetry:
|
||||
tracing:
|
||||
# OTLP 导出开关(关闭后不向 OTLP 后端推送 trace)
|
||||
# 注意: Spring Boot 4.1 中 enabled 标准键是 management.tracing.export.otlp.enabled,
|
||||
# 与 endpoint/transport/headers 等连接细节(management.opentelemetry.tracing.export.otlp.*)分属不同前缀;
|
||||
# 旧写法 management.opentelemetry.tracing.export.otlp.enabled 从未存在, 写了不生效。
|
||||
export:
|
||||
otlp:
|
||||
enabled: false
|
||||
# 指标导出配置(仅本地日志关联, 不导出到 OTLP 后端)
|
||||
otlp:
|
||||
metrics:
|
||||
export:
|
||||
otlp:
|
||||
enabled: false
|
||||
enabled: false
|
||||
# ORM
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:mapper/**/*Mapper.xml
|
||||
|
||||
Reference in New Issue
Block a user