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

Add cloudwatch encoding #37222

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

constanca-m
Copy link

@constanca-m constanca-m commented Jan 14, 2025

Description

Add a cloudwatch encoding extension.

Link to tracking issue

#37113

Testing

There are unit tests for every new coding file.

I have some documents in the directory testdata to test against them.

Documentation

See the README file.

Copy link
Contributor

@MovieStoreGuy MovieStoreGuy left a comment

Choose a reason for hiding this comment

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

Looks like the linting needs to be fixed up, however, briefly going over the code it seems fine.

extension/encoding/cloudwatchencoding/config.go Outdated Show resolved Hide resolved
Comment on lines 57 to 59
if metric.Unit == "" {
return false, errors.New("cloudwatch metric is missing unit field")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

It is my understand that a cloudwatch Unit has a fixed set of values, so it can't just accept any.

Not strictly worth fixing now, but something to call out.

Copy link
Author

Choose a reason for hiding this comment

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

I have added all the possible valid types. I was a bit hesitant on this, because I am afraid it will require more maintenance, but time will tell.

@@ -0,0 +1,3 @@
status:
codeowners:
active: []
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add yourself as a code owner here.

Copy link
Author

Choose a reason for hiding this comment

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

It still fails since I am not a member. Any idea of the next step?

extension/encoding/cloudwatchencoding/extension.go Outdated Show resolved Hide resolved
@constanca-m constanca-m marked this pull request as ready for review January 15, 2025 15:12
@constanca-m constanca-m requested a review from a team as a code owner January 15, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants