diff --git a/tracer/ali/ali_trace.go b/tracer/ali/ali_trace.go index cfe19c2..3e84780 100644 --- a/tracer/ali/ali_trace.go +++ b/tracer/ali/ali_trace.go @@ -17,8 +17,8 @@ type AliSLSConfig struct { AccessKeySecret string } -// Set global trace provider 设置链路追逐的方法 ali -func initTracerProvider(bc *AliSLSConfig) (*provider.Config, error) { +// 设置链路追逐的方法 ali +func InitTracerProvider(bc *AliSLSConfig) (*provider.Config, error) { slsConfig, err := provider.NewConfig(provider.WithServiceName(bc.Name), provider.WithServiceVersion(bc.Version), provider.WithServiceNamespace(bc.Env),