rm kindJaegerUdp

This commit is contained in:
xiandong
2023-02-18 09:40:26 +08:00
committed by kevin
parent c593b5b531
commit 6d4d7cbd6b
4 changed files with 15 additions and 55 deletions

View File

@@ -1,9 +1,5 @@
package trace
import (
"strings"
)
// TraceName represents the tracing name.
const TraceName = "go-zero"
@@ -12,17 +8,5 @@ type Config struct {
Name string `json:",optional"`
Endpoint string `json:",optional"`
Sampler float64 `json:",default=1.0"`
Batcher string `json:",default=jaeger,options=jaeger|jaegerudp|zipkin|otlpgrpc|otlphttp"`
}
func (c *Config) parseEndpoint() (host string, port string) {
EndpointSlice := strings.Split(c.Endpoint, ":")
if len(EndpointSlice) > 0 {
host = strings.TrimSpace(EndpointSlice[0])
}
if len(EndpointSlice) > 1 {
port = strings.TrimSpace(EndpointSlice[1])
}
return host, port
Batcher string `json:",default=jaeger,options=jaeger|zipkin|otlpgrpc|otlphttp"`
}