Skip to content

Commit

Permalink
naming fix
Browse files Browse the repository at this point in the history
  • Loading branch information
enesonus committed Aug 15, 2023
1 parent e28fa65 commit 12431db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/public/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cmd/service-price/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion cmd/service-title/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 12431db

Please sign in to comment.