Optical spectrum analyzers in next-gen networks