appenlight: add basic tags to every request
This commit is contained in:
parent
ecb3eddf84
commit
871b5bb108
3 changed files with 7 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -26,6 +26,9 @@ var initAppEnlight = function (config) {
|
|||
if (config.requestInfo){
|
||||
AppEnlight.setRequestInfo(config.requestInfo);
|
||||
}
|
||||
if (config.tags){
|
||||
AppEnlight.addGlobalTags(config.tags);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -108,6 +108,10 @@ c.template_context['visual']['default_renderer'] = h.get_visual_attr(c, 'default
|
|||
ip: '${c.rhodecode_user.ip_addr}',
|
||||
username: '${c.rhodecode_user.username}'
|
||||
% endif
|
||||
},
|
||||
tags: {
|
||||
rhodecode_version: '${c.rhodecode_version}',
|
||||
rhodecode_edition: '${c.rhodecode_edition}'
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue