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

For dev deployments, cloudwatch service should just log to console #149

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

rowanseymour
Copy link
Member

No description provided.

for _, dim := range md.Dimensions {
log = log.With(strings.ToLower(aws.ToString(dim.Name)), aws.ToString(dim.Value))
}
log.With("metric", aws.ToString(md.MetricName), "value", aws.ToFloat64(md.Value)).Info("put metric data")
Copy link
Member Author

Choose a reason for hiding this comment

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

2024/12/13 11:03:02 INFO put metric data namespace=Foo deployment=dev metric=NumGoats value=10
2024/12/13 11:03:02 INFO put metric data namespace=Foo deployment=dev host=foo1 metric=NumSheep value=20
2024/12/13 11:03:02 INFO put metric data namespace=Foo deployment=dev metric=NumFish value=30

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 89.14%. Comparing base (c430b1e) to head (bbb3bdc).

Files with missing lines Patch % Lines
aws/cwatch/service.go 50.00% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #149   +/-   ##
=======================================
  Coverage   89.13%   89.14%           
=======================================
  Files          50       51    +1     
  Lines        2218     2238   +20     
=======================================
+ Hits         1977     1995   +18     
  Misses        186      186           
- Partials       55       57    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rowanseymour rowanseymour merged commit d7edd1a into main Dec 13, 2024
4 of 5 checks passed
@rowanseymour rowanseymour deleted the cloudwatch_dev branch December 13, 2024 16:26
@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant