fix(otel): resolve exporter protocol through startup configuration

This commit is contained in:
ryan
2026-11-09 10:23:47 +08:00
parent b281b65e78
commit acd63ff410
10 changed files with 65 additions and 24 deletions
+4 -3
View File
@@ -27,9 +27,10 @@ func init() {
// Config 链路追踪配置
type Config struct {
AppName string
SamplingRate float64
TracerName string
AppName string
SamplingRate float64
TracerName string
ExportProtocol string
}
// Init 初始化 Tracer Provider 并关联全局 Tracer 实例