mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 17:20:24 +08:00
10e7922597
* feat: opentelemetry integration, removed self designed tracing * feat: support zipkin on opentelemetry integration * feat: support zipkin on opentelemetry integration, enable it in conf * style: format code * fix: support logx without exporter configured * fix: check return values * refactor: simplify code * refactor: simplify opentelemetry integration * ci: fix staticcheck errors
13 lines
327 B
Go
13 lines
327 B
Go
package trace
|
|
|
|
// TraceName represents the tracing name.
|
|
const TraceName = "go-zero"
|
|
|
|
// A Config is a 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"`
|
|
}
|