Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric committed Jul 18, 2024
1 parent 7a1dcf3 commit 4194276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gin/sentrygin.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (h *handler) handle(ctx *gin.Context) {

r := ctx.Request

transactionName := ctx.Request.URL.Path
transactionName := r.URL.Path
transactionSource := sentry.SourceURL

if fp := ctx.FullPath(); fp != "" {
Expand Down
4 changes: 2 additions & 2 deletions hub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ func TestGetTraceparent(t *testing.T) {
for name, tt := range tests {
t.Run(name, func(t *testing.T) {
result := tt.hub.GetTraceparent()
assertEqual(t, tt.expected, result)
assertEqual(t, result, tt.expected)
})
}
}
Expand Down Expand Up @@ -479,7 +479,7 @@ func TestGetBaggageHeader(t *testing.T) {
result := tt.hub.GetBaggage()
res := strings.Split(result, ",")
sortSlice(res)
assertEqual(t, tt.expected, strings.Join(res, ","))
assertEqual(t, strings.Join(res, ","), tt.expected)
})
}
}
Expand Down

0 comments on commit 4194276

Please sign in to comment.