Skip to content

[usage] Serialize metadata into usage records #12692

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

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

easyCZ
Copy link
Member

@easyCZ easyCZ commented Sep 6, 2022

Description

Adds metadata into each usage record

Related Issue(s)

Fixes #

How to test

Release Notes

NONE

Documentation

Werft options:

  • /werft with-preview

@easyCZ easyCZ force-pushed the mp/usage-serialize-metadata branch from fa25344 to 56e2938 Compare September 6, 2022 14:23
@easyCZ easyCZ marked this pull request as ready for review September 6, 2022 14:23
@easyCZ easyCZ requested a review from a team September 6, 2022 14:23
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Sep 6, 2022
if instance.StoppingTime.IsSet() {
endTime = db.TimeToISO8601(instance.StoppingTime.Time())
}
err := usage.SetMetadataWithWorkspaceInstance(db.WorkspaceInstanceUsageData{
Copy link
Member Author

Choose a reason for hiding this comment

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

Due to the serialization err, we need to propagate the error upstream to make it visible. That's the bulk of the changes in this PR

Copy link
Member

@svenefftinge svenefftinge left a comment

Choose a reason for hiding this comment

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

LGTM

@roboquat roboquat merged commit c9ce4dd into main Sep 6, 2022
@roboquat roboquat deleted the mp/usage-serialize-metadata branch September 6, 2022 14:31
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/L team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants