.net MVC environment - how can I easily turn ray gun off for dev

Glenn

Posted on
Jan 05 2015

When dev is working on code a lot of errors are thrown that we don't want to mix with prod. What is the best practice for either eliminateing or separating dev from prod errors?


Jamie Penney

Posted on
Jan 05 2015

Our approach has been to create separate Applications in Raygun, one for dev and one for prod. We then use configuration transform files to swap out the development app key for the production key. We've found this the easiest way to manage multiple environments - we have 4 of them so it would get really messy having them in one app!

Cheers, Jamie


Glenn

Posted on
Jan 05 2015

Thanks, we have a number of transforms already and that should work well when we want to monitor separately - but is there no easy way to "turn off" temporarily in the dev environment?


Jamie Penney

Posted on
Jan 05 2015

You can set the apiKey attribute to empty to disable Raygun - maybe your base config could have <raygunSettings apiKey="" /> and your production transform could set the apiKey to the correct value?


Reply