Skip to content

Commit

Permalink
fix: orphaned webhook spans
Browse files Browse the repository at this point in the history
  • Loading branch information
alnr committed Feb 7, 2023
1 parent 3bf6ec3 commit a7f9414
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions selfservice/hook/web_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,7 @@ func (e *WebHook) execute(ctx context.Context, data *templateContext) error {
// incoming request context is cancelled.
//
// The webhook will still cancel after 30 seconds as that is the configured timeout for the HTTP client.
req = req.WithContext(context.Background())
// spanOpts = append(spanOpts, trace.WithNewRoot())
req = req.WithContext(trace.ContextWithSpan(context.Background(), span))
}

startTime := time.Now()
Expand Down

0 comments on commit a7f9414

Please sign in to comment.