appenlight: add basic tags to every request

This commit is contained in:
Marcin Lulek 2016-09-28 15:01:58 +02:00
parent ecb3eddf84
commit 871b5bb108
3 changed files with 7 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -26,6 +26,9 @@ var initAppEnlight = function (config) {
if (config.requestInfo){
AppEnlight.setRequestInfo(config.requestInfo);
}
if (config.tags){
AppEnlight.addGlobalTags(config.tags);
}
}
};

View file

@ -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>