Line element in quantum gravity: The example of dsr and noncommutative geometry