function determineObservabilityProviderFromConfig(
  configurationInput,
  stageName,
) {
  let observabilityProvider = null

  if (!configurationInput.stages) {
    return null
  }

  const stageObservability = configurationInput.stages[stageName]?.observability
  const defaultObservability = configurationInput.stages.default?.observability

  observabilityProvider = determineStageSpecificObservabilityProvider(
    stageObservability,
    configurationInput.app,
  )
  if (!observabilityProvider) {
    observabilityProvider = determineStageSpecificObservabilityProvider(
      defaultObservability,
      configurationInput.app,
    )
  }
  return observabilityProvider
}
Checks if observability is configured, which may or may not be enabled
@param {Object} configurationInput The configuration input object
@param {string} stageName The current stage name
@returns {string|null} The configured observability provider or null