In accordance with a more specific aspect of the invention, the optical waveguide is an optical fiber with a D-shaped cross-section; the optical fiber having the core disposed adjacent to the planar surface with the grating formed in the cladding adjacent to the core.