solve problem in dev env. when amg_sentry is set only for prod env.