Allow events only from specific environments

We are seeing more than required events being sent to Sentry in a release environment which is increasing the cost. So I wish to allow events only from development or debug environments and prevent events from the release environment for time being till we update the app. Is it possible? If yes, how?