0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Added ghost-version to metrics

no issue
One of the most important parts of tracking metrics is determining how they are changed by our code changes, so including the current Ghost Version in metrics which we ship is a great way to track improvements
This commit is contained in:
Sam Lord 2021-10-13 11:29:14 +01:00
parent 7722780539
commit 4d043ba3e1

View file

@ -1,4 +1,5 @@
const config = require('./core/shared/config');
const ghostVersion = require('@tryghost/version');
module.exports = {
name: config.get('logging:name'),
@ -13,7 +14,8 @@ module.exports = {
metadata: {
// Undefined if unavailable
siteId: config.get('hostSettings:siteId'),
domain: config.get('url')
domain: config.get('url'),
version: ghostVersion.safe
}
},
gelf: config.get('logging:gelf'),