Skip to content

chore(writer): remove the unused FingerprintLabels - #1083

Merged
rita7lopes merged 1 commit into
metrico:masterfrom
Guess-Who-sec:chore/remove-fingerprint-labels
Nov 24, 2026
Merged

rita7lopes merged 1 commit into
metrico:masterfrom
Guess-Who-sec:chore/remove-fingerprint-labels

Conversation

@Guess-Who-sec

Copy link
Copy Markdown
Contributor

Follow-up 3 from #1060. No dependencies: branches from master.

What

Removes writer/utils/fingerprint.go (FingerprintLabels and its helpers hashAdd / hashAddByte) and writer/utils/fingerprint_test.go, the pin #1060 added for it.

FingerprintLabels has no callers, and it is not standard FNV-1a: it multiplies by the offset basis instead of the FNV prime. The fingerprint every ingest path uses is fingerprintLabels in writer/utils/unmarshal, which stays pinned by #1060.

Verification

  • No other reference in the repo (git grep over all files)
  • go test ./...: 35 packages pass; go test -race ./writer/...: 8 packages pass
  • go vet ./... same as master; gofmt clean; build OK

Potential risks

  • Code outside this repo: writer/utils is not under an internal/ directory, so another module could import it. If something outside the repo used FingerprintLabels, it would stop compiling. I found nothing in this repo that uses it.

utils.FingerprintLabels has no callers. It is also not standard FNV-1a:
it multiplies by the offset basis instead of the FNV prime. Remove it,
its helpers and the pin metrico#1060 added for it. Follow-up from metrico#1060.

@rita7lopes rita7lopes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@rita7lopes
rita7lopes merged commit 33a8440 into metrico:master Nov 24, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants