From 0f423be434e543c78dd0eba1a8c3a0e64c4d84e4 Mon Sep 17 00:00:00 2001 From: spume Date: Fri, 12 Nov 2021 23:12:00 +0800 Subject: [PATCH] fix(middleware/tracing): modify kartos to kratos (#1628) --- middleware/tracing/tracer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware/tracing/tracer.go b/middleware/tracing/tracer.go index bb606ff1a..48d4eaa14 100644 --- a/middleware/tracing/tracer.go +++ b/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)) }