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

Experimental tracing hooks for koa #192

Merged
merged 1 commit into from
Dec 18, 2015
Merged

Experimental tracing hooks for koa #192

merged 1 commit into from
Dec 18, 2015

Conversation

matthewloring
Copy link
Contributor

Fixes #191

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 9, 2015
@matthewloring
Copy link
Contributor Author

@ofrobots I need to experiment more to make sure we're not losing context for DB operations made inside koa but the current state of the hooks is capable of tracing incoming requests. PTAL.

};
}

function *middleware(next) {

This comment was marked as spam.

This comment was marked as spam.

@matthewloring
Copy link
Contributor Author

@ofrobots Ready for another look (tests passing now)

@@ -35,7 +35,7 @@ function run {
C="$(npm bin)/istanbul cover --dir ./coverage/${counter}"
((counter++))
fi
($C "$(npm bin)/_mocha" -- $* --timeout 4000 --R spec) || exit 1
(node --harmony $C "$(npm bin)/_mocha" -- $* --timeout 4000 --R spec) || exit 1

This comment was marked as spam.

This comment was marked as spam.

@matthewloring
Copy link
Contributor Author

@ofrobots This should be working without the harmony flag. PTAL.

if [[ ! $(node --version) =~ v0\.12\..* || ! "${test}" =~ .*trace\-koa\.js ]]
then
run "${test}"
fi

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@ofrobots
Copy link
Contributor

LGTM as experimental support.

@matthewloring matthewloring merged commit 2c493b3 into googleapis:master Dec 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants