rm kindJaegerUdp
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user