I assume that you are discussing some kind of a semiconductor switch and not an electromechanical one. There are lots of information on how to suppress switching transients from the latter. RC snubbers, MOVs, zeners, diode-resistor combinations are the ones used.
With semiconductor switches like IGBTs, thyristors, MOSFETs and so on, there are usually free-wheel diodes built in, either in the device pr parallel to it. There may also be snubbers.
What you can do to eliminate switching noise from a measuring device is to limit band-width. You can usually do it by putting a resistor in series with the signal and then - between resistor and input - a capacitor between signal and signal ground.
Make the R about 1 percent of input impedance to avoid large error contributions (e.g. an oscilloscope input with 1 megohms shall have around 10 kohms). Then make the RC time constant equal to one divided by 2PIxf0. Example: you want 100 kHz band-width and have a 10 kohm resistor, then chose RC = 1/(100000x6.28) = 1.6 microseconds, which makes the capacitor 1.6/10000 = 0.16 nanofarads.
You may also need to use differential input and build a symmetric low pass filter. You can use the same math as above, but you split the resistor into tw equal parts. For better noise reduction, you may need to use an active filter with more poles. But that is not something to go into details on here.
Gunnar Englund