Skip to content

Tag every trace event with the program version (trace-client 0.4.0) - #55

Merged
dmccoystephenson merged 1 commit into
mainfrom
trace/version-on-every-event
Sep 30, 2026
Merged

dmccoystephenson merged 1 commit into
mainfrom
trace/version-on-every-event

Conversation

@dmccoystephenson

Copy link
Copy Markdown
Member

The vendored trace client is updated to trace-client 0.4.0, whose builder takes the program version and tags every event with it as version.

  • The version is sourced as before: the JAR manifest's Implementation-Version. When Parpt is not run from a built JAR, "unknown" is sent (previously the tag was omitted), so the builder can never throw at startup.
  • The hand-added version tag on startup is removed (the client now adds it); project-created now carries the version as well, and the README and first-run notice say so.
  • UsageReporterTest is updated for the new project-created body.

Local test: ./gradlew test (JDK 21) passed, 124 tests.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AuTszT2gqv7nLVYrtKD4ji


drafted by Claude on behalf of Daniel Stephenson

The vendored trace client is updated to 0.4.0, whose builder takes the
program version and adds it as the `version` tag on every event. The
version (the JAR manifest Implementation-Version, "unknown" when not run
from a built JAR) is passed to the builder, and the hand-added startup
`version` tag is dropped. project-created now carries the version too;
the README says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AuTszT2gqv7nLVYrtKD4ji
@github-actions

Copy link
Copy Markdown

Test Results

124 tests  ±0   124 ✅ ±0   1s ⏱️ ±0s
 19 suites ±0     0 💤 ±0 
 19 files   ±0     0 ❌ ±0 

Results for commit 798bd03. ± Comparison against base commit d8ea99d.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
com.preponderous.parpt.trace.UsageReporterTest ‑ sendsStartupWithVersionAndProjectCreatedWithNothingElse(Path)
com.preponderous.parpt.trace.UsageReporterTest ‑ sendsStartupAndProjectCreatedWithTheVersionOnly(Path)

@dmccoystephenson
dmccoystephenson merged commit b42a62a into main Sep 30, 2026
3 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.

1 participant