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: extend metrics with metadata #639

Merged
merged 1 commit into from
Jul 10, 2024
Merged

feat: extend metrics with metadata #639

merged 1 commit into from
Jul 10, 2024

Conversation

nunogois
Copy link
Member

@nunogois nunogois commented Jul 10, 2024

https://linear.app/unleash/issue/2-2389/extend-node-sdk-with-new-metrics

This extends the current metrics with metadata.

Tries being a bit fancy and grab other runtimes like bun and deno. E.g. if we run something in Bun that uses our SDK we can see it in the metrics payload:
image

Similar to: Unleash/unleash-client-dotnet#231 and Unleash/unleash-client-ruby#177

@nunogois nunogois requested a review from sighphyre July 10, 2024 09:53
@@ -231,7 +231,7 @@ The initialize method takes the following arguments:

### instanceId

As of version 5.0.0, `instanceId` is now automatically generated.
Copy link
Member Author

Choose a reason for hiding this comment

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

Scouting: Noticed this was wrong previously. We're already in v5, so next major is 6.

@coveralls
Copy link

Coverage Status

coverage: 90.515% (-0.3%) from 90.784%
when pulling b8ea967 on feat-metrics-extended
into 25040fd on main.

Copy link
Member

@sighphyre sighphyre left a comment

Choose a reason for hiding this comment

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

LGTM

@nunogois nunogois merged commit aa5e29e into main Jul 10, 2024
5 checks passed
@nunogois nunogois deleted the feat-metrics-extended branch July 10, 2024 13: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