1
0
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:
spume 2021-11-12 23:12:00 +08:00 committed by GitHub
parent 0fad751032
commit 0f423be434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))
}