github.com/lingyao2333/mo-zero@v1.4.1/core/trace/config.go (about)

     1  package trace
     2  
     3  // TraceName represents the tracing name.
     4  const TraceName = "go-zero"
     5  
     6  // A Config is an opentelemetry config.
     7  type Config struct {
     8  	Name     string  `json:",optional"`
     9  	Endpoint string  `json:",optional"`
    10  	Sampler  float64 `json:",default=1.0"`
    11  	Batcher  string  `json:",default=jaeger,options=jaeger|zipkin|grpc"`
    12  }