|
|
@ -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), |
|
|
|