config.go 426 B

1234567891011121314
  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. AgentHost string `json:",optional"`
  8. AgentPort string `json:",optional"`
  9. Endpoint string `json:",optional"`
  10. Sampler float64 `json:",default=1.0"`
  11. Batcher string `json:",default=jaeger,options=jaeger|zipkin|otlpgrpc|otlphttp"`
  12. }