feat 默认模块

This commit is contained in:
2026-01-20 12:07:18 +08:00
parent a47557920c
commit 1edebb439c
10 changed files with 98 additions and 33 deletions

View File

@@ -14,6 +14,7 @@ import (
// Tracer 链路追踪模块
type Tracer struct {
DefaultModule
tp *sdktrace.TracerProvider
metricCfg *config.MetricConfig
serviceName string
@@ -42,10 +43,6 @@ func (m *Tracer) Init() error {
return nil
}
func (m *Tracer) Start() error {
return nil
}
func (m *Tracer) Stop() error {
if m.tp != nil {
if err := m.tp.Shutdown(context.Background()); err != nil {