From 4d043ba3e164306e3109caafd298a055d40e3ee5 Mon Sep 17 00:00:00 2001 From: Sam Lord Date: Wed, 13 Oct 2021 11:29:14 +0100 Subject: [PATCH] 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 --- loggingrc.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/loggingrc.js b/loggingrc.js index 45b47046b2..f1e034c9f8 100644 --- a/loggingrc.js +++ b/loggingrc.js @@ -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'),