mirror of
https://github.com/monoscope-tech/monoscope.git
synced 2026-11-16 10:18:01 +00:00
refactor(ingest): name the path's provenance, and stop flattening every span
Review follow-ups to b4ca582e1, no behaviour change:
- `!flattened` was a strict let, so classifyUrlPathWith ran for every span on the
ingest path while only an authoritative route could ever read it. It moves into
the guard that uses it.
- The authority decision and the route it applies to were a Bool and a Maybe that
had to be read together to mean anything. One `Maybe` now carries both, so the
flag cannot be consulted without the value it is about.
- HttpKey carried that decision across to processSpanToEntities as a bare Bool.
It is a PathSource now — DerivedFromUrl or DeclaredByRouter — because the
difference decides whether anything downstream may second-guess the path, and
that is worth more than a field named for its truth value.
This commit is contained in:
parent
b4ca582e1c
commit
77c636c686
1 changed files with 29 additions and 17 deletions
Loading…
Add table
Add a link
Reference in a new issue