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:
parent
7722780539
commit
4d043ba3e1
1 changed files with 3 additions and 1 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue