mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 17:20:24 +08:00
42413dc294
* feat(trace): support otlp http exporter * chore: use otlptracehttp v1.10.0 not upgrade grpc version prevent other modules break * refactor(trace): rename exporter kind grpc to otlpgrpc. BREAKING CHANGE: trace Config.Batcher should use otlpgrpc instead of grpc now.
13 lines
346 B
Go
13 lines
346 B
Go
package trace
|
|
|
|
// TraceName represents the tracing name.
|
|
const TraceName = "go-zero"
|
|
|
|
// A Config is an opentelemetry config.
|
|
type Config struct {
|
|
Name string `json:",optional"`
|
|
Endpoint string `json:",optional"`
|
|
Sampler float64 `json:",default=1.0"`
|
|
Batcher string `json:",default=jaeger,options=jaeger|zipkin|otlpgrpc|otlphttp"`
|
|
}
|