config.go 333 B

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