Skip to content

Commit

Permalink
fix: emit SelfServiceMethodUsed in SettingsSucceeded event (#4056)
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl authored Aug 26, 2024
1 parent 54cb464 commit 76af303
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selfservice/flow/settings/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ func (e *HookExecutor) PostSettingsHook(w http.ResponseWriter, r *http.Request,
WithField("flow_method", settingsType).
Debug("Completed all PostSettingsPrePersistHooks and PostSettingsPostPersistHooks.")

trace.SpanFromContext(r.Context()).AddEvent(events.NewSettingsSucceeded(r.Context(), i.ID, string(ctxUpdate.Flow.Type), ctxUpdate.Flow.Active.String()))
trace.SpanFromContext(r.Context()).AddEvent(events.NewSettingsSucceeded(
r.Context(), i.ID, string(ctxUpdate.Flow.Type), settingsType))

if ctxUpdate.Flow.Type == flow.TypeAPI {
updatedFlow, err := e.d.SettingsFlowPersister().GetSettingsFlow(r.Context(), ctxUpdate.Flow.ID)
Expand Down

0 comments on commit 76af303

Please sign in to comment.