Skip to content

Commit

Permalink
fix(otel): map to sentry attribute key
Browse files Browse the repository at this point in the history
  • Loading branch information
bububa committed Aug 27, 2024
1 parent b05b433 commit 58cc85e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions marketing-api/core/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ func (o *Otel) WithSpan(ctx context.Context, req *http.Request, resp model.Respo
startTime := time.Now()
attrs := append(o.attrs,
semconv10.HTTPURLKey.String(req.URL.String()),
semconv10.HTTPMethodKey.String(req.Method),
semconv10.HTTPTargetKey.String(req.URL.Path),
semconv.URLFull(req.URL.String()),
semconv.HTTPRequestMethodKey.String(req.Method),
semconv.URLPath(req.URL.Path),
Expand Down

0 comments on commit 58cc85e

Please sign in to comment.