Skip to content

Commit ef89849

Browse files
ruvrauhlig
authored andcommitted
make it possible to include a user-id label in all requests. (#4)
1 parent b944d94 commit ef89849

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

watcher/watcher.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ def __init__(self, app, config, logger=logging.getLogger(__name__)):
6565
self.is_include_target_domain_id_in_metric = common.string_to_bool(
6666
self.wsgi_config.get('include_target_domain_id_in_metric', 'True')
6767
)
68-
# whether to include the initiator user id for authentication request in the metrics
69-
self.is_include_authentication_initiator_user_id_in_metric = common.string_to_bool(
70-
self.wsgi_config.get('include_authentication_initiator_user_id_in_metric', 'True')
68+
# whether to include the initiator user id in the metrics
69+
self.is_include_initiator_user_id_in_metric = common.string_to_bool(
70+
self.wsgi_config.get('include_initiator_user_id_in_metric', 'False')
7171
)
7272

7373
config_file_path = config.get('config_file', None)
@@ -189,8 +189,8 @@ def __call__(self, environ, start_response):
189189
"target_project_id:{0}".format(target_project_id)
190190
)
191191

192-
# if authentication request: include initiator user id
193-
if cadf_action == taxonomy.ACTION_AUTHENTICATE and self.is_include_authentication_initiator_user_id_in_metric:
192+
# include initiator user id
193+
if self.is_include_initiator_user_id_in_metric:
194194
labels.append(
195195
"initiator_user_id:{0}".format(initiator_user_id)
196196
)

0 commit comments

Comments
 (0)