From a752423e7c615cfead1a6cf43fa851d003f28eda Mon Sep 17 00:00:00 2001 From: simon-id Date: Fri, 13 Dec 2024 13:33:26 +0100 Subject: [PATCH] Update packages/dd-trace/src/appsec/sdk/track_event.js Co-authored-by: Igor Unanua --- packages/dd-trace/src/appsec/sdk/track_event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dd-trace/src/appsec/sdk/track_event.js b/packages/dd-trace/src/appsec/sdk/track_event.js index ea89ef79bb3..a04f596bbc3 100644 --- a/packages/dd-trace/src/appsec/sdk/track_event.js +++ b/packages/dd-trace/src/appsec/sdk/track_event.js @@ -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)