Skip to content

Commit

Permalink
add session id tracking in sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-id authored Jan 15, 2025
1 parent b61edcd commit 721574d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/dd-trace/src/appsec/sdk/set_user.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ function setUser (tracer, user) {
return
}

if (user.session_id && typeof user.session_id === 'string') {
persistent['usr.session_id'] = user.session_id

Check failure on line 25 in packages/dd-trace/src/appsec/sdk/set_user.js

View workflow job for this annotation

GitHub Actions / lint

'persistent' is not defined
}

setUserTags(user, rootSpan)
}

Expand Down

0 comments on commit 721574d

Please sign in to comment.