prometheus
prometheus copied to clipboard
refactor: make OTEL temporality check easier to read
Very small refactor to make the check for otel valid temporalities easier to read. I did write the previous version but looking back, it's a bit confusing to reason out because there's a lot of negation. No behavioural changes.
The linter complains with QF1001: could apply De Morgan's law (staticcheck) when I make the edit but I think that should be ignored in this case.