From 12431db4421157ac3f079f76826c07b1197279fc Mon Sep 17 00:00:00 2001 From: Mehmet Enes Date: Tue, 15 Aug 2023 12:20:13 +0300 Subject: [PATCH] naming fix --- cmd/public/main.go | 2 +- cmd/service-price/main.go | 2 +- cmd/service-title/main.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/public/main.go b/cmd/public/main.go index 42ada7d..4658c17 100644 --- a/cmd/public/main.go +++ b/cmd/public/main.go @@ -51,7 +51,7 @@ func main() { server := http.NewServeMux() server.HandleFunc("/album", func(w http.ResponseWriter, r *http.Request) { - ctx, span := tracer.Start(r.Context(), "thisServiceName") + ctx, span := tracer.Start(r.Context(), ServiceName) defer span.End() w.Header().Set("Content-Type", "application/json") encoder := json.NewEncoder(w) diff --git a/cmd/service-price/main.go b/cmd/service-price/main.go index 4bf1554..d9e1418 100644 --- a/cmd/service-price/main.go +++ b/cmd/service-price/main.go @@ -30,7 +30,7 @@ func main() { server.HandleFunc("/album_price", func(w http.ResponseWriter, r *http.Request) { p := propagation.NewCompositeTextMapPropagator(propagation.TraceContext{}, propagation.Baggage{}) ctx := p.Extract(r.Context(), propagation.HeaderCarrier(r.Header)) - _, span := tracer.Start(ctx, fmt.Sprintf(SpanNameFmt, "album_artist")) + _, span := tracer.Start(ctx, fmt.Sprintf(SpanNameFmt, "album_price")) defer span.End() w.Header().Set("Content-Type", "application/json") diff --git a/cmd/service-title/main.go b/cmd/service-title/main.go index a8c89a4..e560a44 100644 --- a/cmd/service-title/main.go +++ b/cmd/service-title/main.go @@ -30,7 +30,7 @@ func main() { server.HandleFunc("/album_title", func(w http.ResponseWriter, r *http.Request) { p := propagation.NewCompositeTextMapPropagator(propagation.TraceContext{}, propagation.Baggage{}) ctx := p.Extract(r.Context(), propagation.HeaderCarrier(r.Header)) - _, span := tracer.Start(ctx, fmt.Sprintf(SpanNameFmt, "album_artist")) + _, span := tracer.Start(ctx, fmt.Sprintf(SpanNameFmt, "album_title")) defer span.End() w.Header().Set("Content-Type", "application/json")