Page MenuHomePhabricator

[Java] Extract app version from pom file to populate MP Java lib version in user agent request property
Open, Needs TriagePublic

Description

Description

The current Metrics Platform Java library version is currently manually updated. Extract the ap version from the pom file and include this as a variable when sending user agent info with the event.

Technical Notes

Change set introduced in https://gitlab.wikimedia.org/repos/data-engineering/metrics-platform/-/merge_requests/29 provides a constant that must be updated manually with every release. There should be a way to extract this data from pom.xml as a variable and append it to the setting of the user agent request property in the default event sender.

See https://gitlab.wikimedia.org/repos/data-engineering/metrics-platform/-/blob/main/java/src/main/java/org/wikimedia/metrics_platform/EventSenderDefault.java?ref_type=heads#L41

Acceptance Criteria

  • Metrics Client Java library version is automatically updated in the user agent request property
  • MetricsClient:: METRICS_PLATFORM_LIBRARY_VERSION is removed
  • Test is added for verifying latest version number sent as a request property