Skip to content

Commit

Permalink
rmvs baggage items
Browse files Browse the repository at this point in the history
Signed-off-by: Afzal Ansari <[email protected]>
  • Loading branch information
afzal442 committed Jul 10, 2023
1 parent 6132dc6 commit a32768e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions examples/hotrod/services/frontend/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import (
"net/http"
"path"

"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/baggage"
"go.opentelemetry.io/otel/trace"
"go.uber.org/zap"

Expand Down Expand Up @@ -114,15 +112,6 @@ func (s *Server) dispatch(w http.ResponseWriter, r *http.Request) {
return
}

ctx = r.Context()
span := trace.SpanFromContext(ctx)
bag := baggage.FromContext(ctx)
for _, m := range bag.Members() {
if span.SpanContext().HasSpanID() {
span.AddEvent("Handling Dispatch", trace.WithAttributes(attribute.Key(m.Key()).String(m.Value())))
}
}

s.writeResponse(response, w, r)
}

Expand Down

0 comments on commit a32768e

Please sign in to comment.