The temperature sensitivity of whispering-gallery mode resonances of an optical fiber is exploited to measure thermal effects induced by an optical signal of moderate power along a fiber Bragg gating (FBG). The UV inscription technique used for the fabrication of FBG introduces a permanent change in the absorption coefficient of the fiber; thus, thermal effects are expected. The resonance wavelength shift of whispering-gallery modes provides information about the temperature change in the fiber, point to point. We present the experimental characterization of the thermal effects in FBG as a function of the wavelength and the power of the launched optical signal through the grating. (C) 2014 Optical Society of America