Skip to content

feat: Initial metrics implementation - #7

Merged
sliedig merged 10 commits into
aws-powertools:developfrom
t1agob:develop
Oct 13, 2020
Merged

sliedig merged 10 commits into
aws-powertools:developfrom
t1agob:develop

Conversation

@t1agob

@t1agob t1agob commented Sep 14, 2020

Copy link
Copy Markdown
Contributor

Description of changes:

Added support for 2 types of metrics:

  • SingleMetric - Encapsulated in using clause, metric is automatically flushed to cloudwatch when SingleMetric object is released.
  • Metrics - Metrics are persisted in memory until the developer manually flushes them using code or when the EMF enforced metric limit is reached - 100 metrics per EMF object.

Checklist

Breaking change checklist

RFC issue #:

  • Migration process documented
  • Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@msimpsonnz

Copy link
Copy Markdown
Contributor

Looks great, do you have any tests?

@msimpsonnz msimpsonnz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great, once we have figured more out about implementation we will need some tests

t1agob and others added 4 commits September 22, 2020 00:29
Co-authored-by: Peter Grman <peter.grman@hey.com>
Co-authored-by: Peter Grman <peter.grman@hey.com>
Co-authored-by: Peter Grman <peter.grman@hey.com>
Renamed addToJson to AddToJson
@sliedig
sliedig merged commit f3aa1d8 into aws-powertools:develop Oct 13, 2020
@heitorlessa

heitorlessa commented Oct 13, 2020 via email

Copy link
Copy Markdown
Contributor
@t1agob t1agob added area/metrics Core metrics utility feature New features or minor changes labels Jan 18, 2022
@t1agob t1agob changed the title feature: metrics Jan 18, 2022
@t1agob t1agob changed the title feat: metrics Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/metrics Core metrics utility feature New features or minor changes

5 participants