Skip to content

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

Merged
rluong003 merged 1 commit into
masterfrom
richard.luong/tally-module-v7
Sep 14, 2026
Merged

rluong003 merged 1 commit into
masterfrom
richard.luong/tally-module-v7

Conversation

@rluong003

Copy link
Copy Markdown
Contributor

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/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 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

  1. Has tally ever broken a public interface? As far as I can tell it has not, in its entire history. That is a meaningful property to give up and I would rather you decide it than me.
  2. External consumers. There are non-Uber implementers of StatsReporter in the wild. Every one of them must add two methods to compile against v7. Is that acceptable, or is an optional interface — type-assert for ReportNativeHistogram, 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.
  3. Is NativeHistogramData the right seam, or should tally own an encoding rather than shipping opaque bytes?
  4. The m3 reporter drops payloads. Who owns choosing a real backend and wire representation there, and does that need to land before v7 is tagged rather than after?

Verification

go build ./... && go test ./... && gofmt -l . clean on each of the four commits, each checked out individually rather than only at the tip.

@CLAassistant

CLAassistant commented Sep 11, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@rluong003
rluong003 force-pushed the richard.luong/tally-native-histogram-scope branch from f2cba83 to 83883ac Compare September 14, 2026 19:56
@rluong003
rluong003 force-pushed the richard.luong/tally-module-v7 branch from 83c2bc0 to 23aa62c Compare September 14, 2026 19:56
@rluong003
rluong003 force-pushed the richard.luong/tally-native-histogram-scope branch from 83883ac to b5dabd1 Compare September 14, 2026 20:08
@rluong003
rluong003 force-pushed the richard.luong/tally-module-v7 branch from 23aa62c to 633c344 Compare September 14, 2026 20:08
@rluong003
rluong003 marked this pull request as ready for review September 14, 2026 20:51
@rluong003
rluong003 force-pushed the richard.luong/tally-native-histogram-scope branch from b5dabd1 to ca13a53 Compare September 14, 2026 21:43
@rluong003
rluong003 force-pushed the richard.luong/tally-module-v7 branch 2 times, most recently from adc73c3 to 9915616 Compare September 14, 2026 21:45
@rluong003
rluong003 force-pushed the richard.luong/tally-native-histogram-scope branch from ca13a53 to 6f0bdd7 Compare September 14, 2026 21:45
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
rluong003 changed the base branch from richard.luong/tally-native-histogram-scope to master September 14, 2026 21:46
@rluong003
rluong003 force-pushed the richard.luong/tally-module-v7 branch from 9915616 to 9ebf486 Compare September 14, 2026 21:46
@rluong003
rluong003 merged commit 657abce into master Sep 14, 2026
6 of 7 checks passed
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>
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.

3 participants