Skip to content

Rename the module to github.com/uber-go/tally/v7 - #4

Closed
rluong003 wants to merge 1 commit into
richard.luong/tally-native-histogram-scopefrom
richard.luong/tally-module-v7
Closed

rluong003 wants to merge 1 commit into
richard.luong/tally-native-histogram-scopefrom
richard.luong/tally-module-v7

Conversation

@rluong003

Copy link
Copy Markdown
Owner

Stack 4 of 4. Based on #3. Mechanical — skip it.

  • go.mod → module github.com/uber-go/tally/v7
  • every internal import path updated to match
  • version.go → Version = "7.0.0"

41 files, 65 insertions, 65 deletions, and the only change that is not an import line is the version constant. No behavioral change. Kept in its own commit so reviewers can skip it wholesale and so it can be re-run trivially if the stack is rebased.

Why v7

v5 and v6 are already taken in this repository, as branches (refs/heads/v5, refs/heads/v6) and as published tags (v5.0.0, v6.0.1). v7 is the next number that collides with nothing.

Why a new major is the cheap option

Semantic import versioning means v7 lands alongside v3 and v4 rather than replacing them. Uber's Go monorepo already pins v3 (v3.5.8+incompatible) and v4 (v4.1.17) side by side today, so this adds a third pin and breaks nothing on day one; adopters move when they choose to.

Breaking the interface in v3 in place would instead touch roughly 81,000 files in a single commit. That is the comparison that makes a major bump the conservative choice here, not the aggressive one.

Not done, deliberately

No tag. Tagging publishes to the Go module proxy, which caches immutably — effectively irreversible. That is a decision for the maintainers after the design questions below are settled, not something to slip in with the code.

Open questions for maintainers

  1. Tally's public interfaces have never been broken in its history. Is v7 the right vehicle, or should this land behind something narrower?
  2. There are external non-Uber consumers of StatsReporter. Every one of them has to add two methods to compile against v7. Is that acceptable, or is an optional interface (type-assert for ReportNativeHistogram, skip if absent) worth the ugliness to keep the break out of the required surface?
  3. Is NativeHistogramData the right seam, or should tally own an encoding?
  4. Who owns picking the default backend for the m3 reporter, given it currently drops payloads?

go build ./... && go test ./... && gofmt -l . clean on this commit alone.

Mechanical: the module path becomes github.com/uber-go/tally/v7, every
internal import is updated to match, and Version becomes "7.0.0". No
behavioral change, so this is kept separate from the three commits that
carry the actual work.

v7 rather than v5 or v6: both are already taken in this repository, as
branches (refs/heads/v5, refs/heads/v6) and as published tags (v5.0.0,
v6.0.1). Going straight to v7 avoids colliding with either.

A new major is the cheap option here, not the expensive one. Uber's Go
monorepo already pins v3 and v4 side by side, so v7 lands alongside them
and breaks nothing on day one; breaking v3 in place would touch tens of
thousands of files in a single commit.
@rluong003

Copy link
Copy Markdown
Owner Author

Superseded by uber-go#281 — org membership came through, so the stack now lives on the upstream repo. Review there.

@rluong003 rluong003 closed this Sep 11, 2026
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.

1 participant