Skip to content

Commit

Permalink
Update packages/dd-trace/src/appsec/sdk/track_event.js
Browse files Browse the repository at this point in the history
Co-authored-by: Igor Unanua <igor.unanua@datadoghq.com>
  • Loading branch information
simon-id and iunanua authored Dec 13, 2024
1 parent b1ba64a commit a752423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dd-trace/src/appsec/sdk/track_event.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function trackUserLoginSuccessEvent (tracer, user, metadata) {

const login = user.login ?? user.id

metadata = Object.assign({ 'usr.login': login }, metadata)
metadata = { 'usr.login': login, ...metadata }

trackEvent('users.login.success', metadata, 'trackUserLoginSuccessEvent', rootSpan)

Expand Down

0 comments on commit a752423

Please sign in to comment.