Skip to content

Commit 61ac749

Browse files
authored
chore(appsec): track_user must use tag the service_entry_span (#14384)
## Description This is an omission from PR: #14210 . The `track_user` function must pass to tag the user on to the `set_user` helper. ## Checklist - [x] PR author has checked that all the criteria below are met - The PR description includes an overview of the change - The PR description articulates the motivation for the change - The change includes tests OR the PR description describes a testing strategy - The PR description notes risks associated with the change, if any - Newly-added code is easy to change - The change follows the [library release note guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html) - The change includes or references documentation updates if necessary - Backport labels are set (if [applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)) ## Reviewer Checklist - [x] Reviewer has checked that all the criteria below are met - Title is accurate - All changes are related to the pull request's stated goal - Avoids breaking [API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces) changes - Testing strategy adequately addresses listed risks - Newly-added code is easy to change - Release note makes sense to a user of the library - If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment - Backport labels are set in a manner that is consistent with the [release branch maintenance policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
1 parent 0aff5fb commit 61ac749

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ddtrace/appsec/track_user_sdk.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def track_user(
104104
scope=usr_scope if isinstance(usr_scope, str) else None,
105105
role=usr_role if isinstance(usr_role, str) else None,
106106
session_id=session_id,
107+
span=span,
107108
may_block=_auto,
108109
mode=_constants.LOGIN_EVENTS_MODE.AUTO if _auto else _constants.LOGIN_EVENTS_MODE.SDK,
109110
)

0 commit comments

Comments
 (0)