Skip to content

Add runtime and memorysize tags to enhanced metrics #31

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 2 commits into from
Nov 4, 2019

Conversation

sfirrin
Copy link
Contributor

@sfirrin sfirrin commented Oct 30, 2019

What does this PR do?

Adds runtime and memorysize tags to enhanced invocations and errors metrics.

Motivation

https://trello.com/c/DPjTvXFl/164-add-runtime-and-memorysize-tags-to-layer-enhanced-metrics

Testing Guidelines

Tested and confirmed to work on our demo functions

@sfirrin sfirrin requested a review from a team as a code owner October 30, 2019 19:39
processVersionTagString = RuntimeTagValues.Node8;
}

if (processVersion.startsWith("v10")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering if it might be useful to keep the minor version, since AWS seems to reserve the right to update it 🤔 . On one hand, it's more accurate and might reveal why a regression occurred, on the other it doesn't match the aws specified runtime.

@codecov-io
Copy link

Codecov Report

Merging #31 into master will increase coverage by 0.69%.
The diff coverage is 89.28%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #31      +/-   ##
==========================================
+ Coverage   90.09%   90.78%   +0.69%     
==========================================
  Files          21       22       +1     
  Lines         555      575      +20     
  Branches       88       92       +4     
==========================================
+ Hits          500      522      +22     
+ Misses         34       32       -2     
  Partials       21       21
Impacted Files Coverage Δ
src/index.ts 87.87% <100%> (ø) ⬆️
src/utils/process-version.ts 50% <50%> (ø)
src/metrics/enhanced-metrics.ts 92.85% <91.66%> (+32.85%) ⬆️
src/utils/cold-start.ts 100% <0%> (+8.33%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b94ed5...c83d1db. Read the comment docs.

@sfirrin sfirrin merged commit 021acfd into master Nov 4, 2019
@sfirrin sfirrin deleted the stephenf/add-runtime-and-memorysize-tags branch November 4, 2019 19:32
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.

3 participants