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

fix: ensure MetricMetadata is always an object + remove underscored from fields #14

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

smoya
Copy link
Owner

@smoya smoya commented Nov 13, 2023

Description

This PR fixes the type for MetricMetadata in order to ensure it is always an object, so no more arrays are allowed. We were wrongly creating an empty array by default and that is not accepted by NewRelic.
This PR also removes the _ (underscore) prefix from generated metadata fields because same reason.

cc @peter-rr

@smoya smoya requested a review from peter-rr November 13, 2023 18:18
@smoya smoya merged commit 77156f2 into main Nov 13, 2023
@smoya smoya deleted the fix/metadata branch November 13, 2023 18:20
@smoya
Copy link
Owner Author

smoya commented Nov 13, 2023

🎉 This PR is included in version 1.3.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@smoya smoya added the released label Nov 13, 2023
Copy link
Collaborator

@peter-rr peter-rr left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants