Repository navigation
Rename the module to github.com/uber-go/tally/v7 - #281
Merged
Merged
Conversation
This was referenced Sep 11, 2026
adamjeanlaurent
approved these changes
Sep 14, 2026
rluong003
force-pushed
the
richard.luong/tally-native-histogram-scope
branch
from
September 14, 2026 19:56
f2cba83 to
83883ac
Compare
rluong003
force-pushed
the
richard.luong/tally-module-v7
branch
from
September 14, 2026 19:56
83c2bc0 to
23aa62c
Compare
rluong003
force-pushed
the
richard.luong/tally-native-histogram-scope
branch
from
September 14, 2026 20:08
83883ac to
b5dabd1
Compare
rluong003
force-pushed
the
richard.luong/tally-module-v7
branch
from
September 14, 2026 20:08
23aa62c to
633c344
Compare
rluong003
marked this pull request as ready for review
September 14, 2026 20:51
rluong003
force-pushed
the
richard.luong/tally-native-histogram-scope
branch
from
September 14, 2026 21:43
b5dabd1 to
ca13a53
Compare
rluong003
force-pushed
the
richard.luong/tally-module-v7
branch
2 times, most recently
from
September 14, 2026 21:45
adc73c3 to
9915616
Compare
rluong003
force-pushed
the
richard.luong/tally-native-histogram-scope
branch
from
September 14, 2026 21:45
ca13a53 to
6f0bdd7
Compare
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
changed the base branch from
richard.luong/tally-native-histogram-scope
to
master
September 14, 2026 21:46
rluong003
force-pushed
the
richard.luong/tally-module-v7
branch
from
September 14, 2026 21:46
9915616 to
9ebf486
Compare
rluong003
added a commit
that referenced
this pull request
Oct 8, 2026
The README predates both the native histogram work and the module rename. Renaming the module to /v7 (#281) never touched it, so the install line and every import example still pointed at the v-less path: a reader following them on v7 would silently get v4. Native histograms were undocumented entirely, and the interface listings the README pastes verbatim had drifted -- StatsReporter was missing ReportNativeHistogram and Scope was missing both native histogram methods. Those listings are now exact copies of reporter.go and types.go again. The new section covers what a native histogram buys over a bucketed one, why that forces a serialized payload, and that tally defines neither the encoding nor a reporter that understands it. It says plainly that no bundled reporter can transmit them, and points at tally.internal.native_histogram_drops as the way to find out when they are being discarded. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
rluong003
added a commit
that referenced
this pull request
Oct 8, 2026
The README predates both the native histogram work and the module rename. Renaming the module to /v7 (#281) never touched it, so the install line and every import example still pointed at the v-less path: a reader following them on v7 would silently get v4. Native histograms were undocumented entirely, and the interface listings the README pastes verbatim had drifted -- StatsReporter was missing ReportNativeHistogram and Scope was missing both native histogram methods. Those listings are now exact copies of reporter.go and types.go again. The new section covers what a native histogram buys over a bucketed one, why that forces a serialized payload, and that tally defines neither the encoding nor a reporter that understands it. It says plainly that no bundled reporter can transmit them, and that a scope with no NativeHistogramFactory counts values without ever reporting them and gives no sign that it is doing so. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack 4 of 4. Based on #280. The code change is mechanical; the discussion below is not.
go.mod→module github.com/uber-go/tally/v7version.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 the diff 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, not the expensive one
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 comparison is what makes a major bump the conservative option here.
Not done, deliberately
No tag, and nothing marked ready for review. Tagging publishes to the Go module proxy, which caches immutably — effectively irreversible. That is a maintainer decision after the questions below are settled, not something to slip in alongside the code.
Open questions — I would like opinions before this goes further
StatsReporterin the wild. Every one of them must add two methods to compile against v7. Is that acceptable, or is an optional interface — type-assert forReportNativeHistogram, skip when absent — worth the ugliness to keep the break out of the required surface entirely? That alternative would avoid the major bump, and this whole stack with it.NativeHistogramDatathe right seam, or should tally own an encoding rather than shipping opaque bytes?Verification
go build ./... && go test ./... && gofmt -l .clean on each of the four commits, each checked out individually rather than only at the tip.