mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-07 06:59:59 +08:00
12 lines
235 B
Go
12 lines
235 B
Go
|
|
package trace
|
||
|
|
|
||
|
|
import (
|
||
|
|
"go.opentelemetry.io/otel"
|
||
|
|
"go.opentelemetry.io/otel/propagation"
|
||
|
|
)
|
||
|
|
|
||
|
|
func init() {
|
||
|
|
otel.SetTextMapPropagator(propagation.NewCompositeTextMapPropagator(
|
||
|
|
propagation.TraceContext{}, propagation.Baggage{}))
|
||
|
|
}
|