mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-28 03:57:02 +02:00
fix(middleware/tracing): modify kartos to kratos (#1628)
This commit is contained in:
parent
0fad751032
commit
0f423be434
@ -34,9 +34,9 @@ func NewTracer(kind trace.SpanKind, opts ...Option) *Tracer {
|
||||
|
||||
switch kind {
|
||||
case trace.SpanKindClient:
|
||||
return &Tracer{tracer: otel.Tracer("kartos"), kind: kind, opt: &op}
|
||||
return &Tracer{tracer: otel.Tracer("kratos"), kind: kind, opt: &op}
|
||||
case trace.SpanKindServer:
|
||||
return &Tracer{tracer: otel.Tracer("kartos"), kind: kind, opt: &op}
|
||||
return &Tracer{tracer: otel.Tracer("kratos"), kind: kind, opt: &op}
|
||||
default:
|
||||
panic(fmt.Sprintf("unsupported span kind: %v", kind))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user