Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add extended metrics metadata #222

Merged
merged 3 commits into from
Jul 29, 2024
Merged

Conversation

sighphyre
Copy link
Member

@sighphyre sighphyre commented Jul 26, 2024

Description

Adds extended metrics/registration metadata. This doesn't make any changes in terms of public API or behavior, but allows the Unleash server better insight into SDKs running in the wild.

Yggdrasil version is currently defaulted to null. Yggdrasil is long term plans, which may never make it into this project

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

We don't really test against any of the metrics/registration data in this SDK (probably sane). So I've opted just to plug this into Unleash and observe the incoming data

  • Integration tests / Manual Tests

Checklist:

  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

@sighphyre sighphyre marked this pull request as ready for review July 26, 2024 13:35
Copy link
Member

@nunogois nunogois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

src/Client/DefaultRegistrationService.php Outdated Show resolved Hide resolved
src/Metrics/DefaultMetricsSender.php Outdated Show resolved Hide resolved
@RikudouSage
Copy link
Collaborator

Just a side note, if you ever wonder what php versions people use, at Packagist (the official package repository) they make the stats available publicly: https://packagist.org/packages/unleash/client/php-stats

@sighphyre
Copy link
Member Author

Just a side note, if you ever wonder what php versions people use, at Packagist (the official package repository) they make the stats available publicly: https://packagist.org/packages/unleash/client/php-stats

Oh that's very nice, I did not know about that, very useful, thanks

@sighphyre sighphyre merged commit f178a77 into main Jul 29, 2024
12 checks passed
@sighphyre sighphyre deleted the feat/extended-metrics-metadata branch July 29, 2024 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants