mirror of
https://github.com/monoscope-tech/monoscope.git
synced 2026-11-16 10:18:01 +00:00
fix(ingest): stop attributing unkeyed spans to an arbitrary batch project
convertResourceSpansToOtelLogs fell back to `snd (V.head pids)` when a resource-span's API key matched nothing and carried no at-project-id — in a multi-project (multi-tenant) batch that silently mis-attributes spans to whichever project happened to be first, a cross-tenant data leak. The logs converter never had this fallback (it drops). Restrict the fallback to the unambiguous single-project batch; drop otherwise, matching the logs path. Regression guard belongs at integration level (the converter is unexported and needs protobuf ResourceSpans fixtures); owed to CI while the live-test-dev watcher is unusable (pre-existing GHCi linker bug).
This commit is contained in:
parent
0d8a917c74
commit
a6ce1ab7f3
1 changed files with 6 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue