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 and registration with optional metadata #40

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

sighphyre
Copy link
Member

Extends the metrics and registration structs to accept metadata fields for the new metrics we want to ingest.

I've chosen to make this type non optional - you really should be filling in these fields when you're ingesting this data. The serialization, however, will happily ignore the missing fields. This is all rolled up into a single flattened struct so that it's easier to keep these fields together

Depends on #38 and #39 - kept separate from these because those facilitate making the logic change smaller

"environment": "some-instance",
"instanceId": "something",
"interval": 15000,
"started": "1867-11-07T12:00:00Z",
Copy link
Member

Choose a reason for hiding this comment

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

Wow, ancient... :P

Copy link
Member Author

Choose a reason for hiding this comment

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

Marie Curie's birthday :)

Copy link
Member

@chriswk chriswk left a comment

Choose a reason for hiding this comment

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

LGTM

@sighphyre sighphyre force-pushed the chore/make-tests-easier-to-patch branch from 0e366b4 to db9b7d9 Compare July 18, 2024 14:20
Base automatically changed from chore/make-tests-easier-to-patch to main July 18, 2024 14:39
@sighphyre sighphyre force-pushed the chore/extend-metrics-for-types branch from a0a7390 to dd2a966 Compare July 18, 2024 14:40
@sighphyre sighphyre merged commit 9938660 into main Jul 18, 2024
1 check passed
@sighphyre sighphyre deleted the chore/extend-metrics-for-types branch July 18, 2024 14:41
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.

2 participants