Repository navigation
Say the tag cap counts version, and what an untyped version or installId does - #42
Merged
Merged
Conversation
The 32-tag count that stops the install tag includes the version tag the client adds, so an event passing 31 tags of its own goes without install; the README and MAX_TAGS doc comment read as if only the event's own tags counted. The README and TSDoc also now say a non-string version throws and a non-string installId counts as none, as the code and tests already do. No behavior changed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
Self-review rubric (anchored on CI run 43358468590, head e5111c4):
Observation outside the diff: the The PR is docs-only and anchor-green, and no do-not-auto-merge path matched. This review comment was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener). drafted by Claude on behalf of Daniel Stephenson |
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.
Summary
Stage A documentation accuracy sweep. Three doc statements were found to say less than, or something different from, what the code does. No behavior is changed.
versiontag.withInstall()receives the output ofwithVersion()(trace-client.ts,report()), soObject.keys(tags).length >= MAX_TAGSincludes theversiontag the client adds. An event passing 31 tags of its own (none of themversion) therefore goes withoutinstall. The testnever pushes an event past the tag capalready pins this (// 31 + version = 32: no room). The README (two places) and theMAX_TAGSdoc comment said "an event that already has 32 tags", which reads as the event's own tags. They now say the count includesversion.versionthrows. The constructor checkstypeof version !== "string", and the testrejects a missing, blank or overlong version at constructionasserts{ version: 3 }throws. The README and theversiondoc comment listed only missing, blank and overlong.installIdcounts as none. The constructor treats any non-string asnull, and the testtreats a non-string installId as none, falling through to the filepins it. The README example comment and theinstallIddoc comment said only "null or blank" / "missing or blank".Files:
README.md,trace-client.ts(doc comments only),CHANGELOG.md(one[Unreleased]bullet).Test plan
testjob (npm ci,npm run typecheck,npm test) green on the PR head. Local Node is unavailable in this environment, so CI is the gate.trace-client.tsand the named existing tests.Cross-client parity
No cross-client-visible behavior changed: only documentation and doc comments. trace-client-python and trace-client-java need no matching change for this PR.
CHANGELOG
One
[Unreleased]bullet was added, describing the clarified documentation; the version is not bumped.Skipped issues
User-Agentheader insend(), which is wire format on the do-not-auto-merge list and needs a check against trace-client-python/java. It is left for the owner.enabledfails open): the opt-out semantics anddisabledReasonare shared across the three clients, and the owner's decision is pending. It is left for the owner.No tracking issue; the gap was found during the documentation sweep.
This PR description was drafted during a Gardener session (https://github.com/Stephenson-Software/gardener).
🤖 Generated with Claude Code
drafted by Claude on behalf of Daniel Stephenson