master
nikkiing 1 year ago
parent c27049b784
commit c6f712c547
  1. 4
      tracer/ali/ali_trace.go

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

Loading…
Cancel
Save