diff --git a/ghost/core/core/shared/instrumentation.js b/ghost/core/core/shared/instrumentation.js index d4ab13a51b..a57d3dd026 100644 --- a/ghost/core/core/shared/instrumentation.js +++ b/ghost/core/core/shared/instrumentation.js @@ -1,9 +1,10 @@ async function initOpenTelemetry({config}) { // Always enable in development environment // In production, only enable if explicitly enabled via config `opentelemetry:enabled` - const isDevelopment = process.env.NODE_ENV === 'development'; + // TODO: Instrumentation currently breaks viewing posts - disabled until we can fix + // const isDevelopment = process.env.NODE_ENV === 'development'; const isConfigured = config.get('opentelemetry:enabled'); - const enabled = isDevelopment || isConfigured; + const enabled = isConfigured; // || isDevelopment; if (!enabled) { return; }