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

update the koa plugin to capture the entire framework duration #628

Merged
merged 2 commits into from
Jul 16, 2019

Conversation

rochdev
Copy link
Member

@rochdev rochdev commented Jul 15, 2019

What does this PR do?

Update the koa plugin to capture the entire framework duration instead of just the duration from the point when the Datadog middleware was run.

Motivation

Using a middleware to start instrumenting means that parts of the framework running before the middleware was not included in the timing. This will be especially important when the http and koa spans will no longer be merged. This change is similar to what was done for Express in #627

@rochdev rochdev added this to the 0.13.1 milestone Jul 15, 2019
@rochdev rochdev requested a review from a team as a code owner July 15, 2019 21:11
@codecov-io
Copy link

Codecov Report

Merging #628 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #628      +/-   ##
==========================================
+ Coverage   96.72%   96.73%   +0.01%     
==========================================
  Files          92       92              
  Lines        3110     3120      +10     
==========================================
+ Hits         3008     3018      +10     
  Misses        102      102
Impacted Files Coverage Δ
packages/datadog-plugin-koa/src/index.js 100% <100%> (ø) ⬆️

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 2b3ba57...c9d5016. Read the comment docs.

1 similar comment
@codecov-io
Copy link

codecov-io commented Jul 16, 2019

Codecov Report

Merging #628 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #628      +/-   ##
==========================================
+ Coverage   96.72%   96.73%   +0.01%     
==========================================
  Files          92       92              
  Lines        3110     3120      +10     
==========================================
+ Hits         3008     3018      +10     
  Misses        102      102
Impacted Files Coverage Δ
packages/datadog-plugin-koa/src/index.js 100% <100%> (ø) ⬆️

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 2b3ba57...c9d5016. Read the comment docs.

@rochdev rochdev merged commit b2887ee into master Jul 16, 2019
@rochdev rochdev deleted the koa-patch-earlier branch July 16, 2019 15:39
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