move opentelemetry into trace package, and refactoring (#996)

* move opentelemetry into trace package, and refactoring

* rename rewritten package names
This commit is contained in:
Kevin Wan
2021-09-05 22:18:35 +08:00
committed by GitHub
parent 8829c31c0d
commit 58874779e7
15 changed files with 38 additions and 38 deletions

View File

@@ -0,0 +1,12 @@
package opentelemetry
// 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"`
}