Skip to content

Commit

Permalink
adds return obj to handler
Browse files Browse the repository at this point in the history
  • Loading branch information
afzal442 committed Jul 10, 2023
1 parent 62b8c5a commit 64a6fdf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion examples/hotrod/pkg/tracing/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func (c *HTTPClient) GetJSON(ctx context.Context, url string, out interface{}) e
if err != nil {
return err
}
req = req.WithContext(ctx)

res, err := c.Client.Do(req)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion examples/hotrod/pkg/tracing/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type TracedServeMux struct {
func (tm *TracedServeMux) Handle(pattern string, handler http.Handler) {
tm.logger.Bg().Debug("registering traced handler", zap.String("endpoint", pattern))

otelhttp.WithRouteTag(pattern, handler)
handler = otelhttp.WithRouteTag(pattern, handler)

middleware := otelhttp.NewHandler(handler, pattern,
otelhttp.WithTracerProvider(tm.tracer))
Expand Down

0 comments on commit 64a6fdf

Please sign in to comment.