fix(middleware/tracing): modify kartos to kratos (#1628)

pull/1630/head
spume 3 years ago committed by GitHub
parent 0fad751032
commit 0f423be434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      middleware/tracing/tracer.go

@ -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…
Cancel
Save