Skip to content

fix(analytics): send $lib_version on events - #114

Open
rahul-mixpanel wants to merge 1 commit into
masterfrom
rahulraveendran-sdk-501-java-sdk-does-not-send-lib_version
Open

rahul-mixpanel wants to merge 1 commit into
masterfrom
rahulraveendran-sdk-501-java-sdk-does-not-send-lib_version

Conversation

@rahul-mixpanel

Copy link
Copy Markdown

Java events and imports sent mp_lib but not $lib_version, only flag requests had the version. Linear: SDK-501.

  • MessageBuilder adds $lib_version from VersionUtil.getVersion() next to mp_lib, and keeps the caller's value if they set one. Same as python/ruby.
  • the version already comes from the pom through mixpanel-version.properties, so no release workflow change needed.
  • local flags sent mp_lib=java while remote flags and events send jdk. Changed local to jdk too. I checked the flags service, it only looks at mp_lib for python, so nothing keys on java.

mvn test passes.

🤖 Generated with Claude Code

Events and imports sent mp_lib but not the SDK version, so Java traffic
couldn't be broken down by release. Add $lib_version from
VersionUtil.getVersion() next to mp_lib, without overwriting a value
the caller set. Maven already fills the version from the pom, so the
release flow needs no change.

Also send mp_lib=jdk on local flag definition requests, matching remote
flags and events, which already send jdk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Dec 2, 2026

Copy link
Copy Markdown

SDK-501

@greptile-apps

greptile-apps Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] This PR appears safe to merge.

Reviews (1) · Last reviewed commit: "fix(analytics): send $lib_version on eve..." · Reviewed by Greptile

@rahul-mixpanel
rahul-mixpanel marked this pull request as ready for review December 3, 2026 06:50
@rahul-mixpanel
rahul-mixpanel requested review from a team and jakewski December 3, 2026 06:50

This branch has not been deployed

No deployments
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