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

Add Express Trace Plugin #363

Merged
merged 6 commits into from
Feb 21, 2017
Merged

Add Express Trace Plugin #363

merged 6 commits into from
Feb 21, 2017

Conversation

kjin
Copy link
Contributor

@kjin kjin commented Feb 7, 2017

  • Add Express Trace Plugin
  • Remove Express Hook

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 7, 2017
@kjin
Copy link
Contributor Author

kjin commented Feb 7, 2017

Dependent on #366 - PTAL at that first

@@ -0,0 +1,70 @@
'use strict';

This comment was marked as spam.

Copy link
Contributor

@matthewloring matthewloring left a comment

Choose a reason for hiding this comment

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

Looks good structurally, we'll have to look into the failing tests.


module.exports = [
{ versions: SUPPORTED_VERSIONS, patch: patchModuleRoot }
];

This comment was marked as spam.

@kjin
Copy link
Contributor Author

kjin commented Feb 7, 2017

Test failures are due to us no longer unpatching. So this is blocked on stop (and related tests) being removed completely.

@kjin kjin force-pushed the express-plugin branch 3 times, most recently from 8416c51 to 62ab860 Compare February 16, 2017 01:09
@kjin
Copy link
Contributor Author

kjin commented Feb 16, 2017

CI failures are due to differences in context propagation in mocha in Node v0.12. This is apparent if we add

if (this.isActive() && config.forceNewAgent_) {
  agent.stop();
}

to the public agent's start method, and is the same reason why #378 was also failing in Node v0.12.

While the fix is small, I think this may a compelling reason to drop support for v0.12. @ofrobots @matthewloring What are your thoughts on this?

@kjin
Copy link
Contributor Author

kjin commented Feb 18, 2017

Blocked on #388.

function middleware(req, res, next) {
var options = {
name: req.path,
traceContext: req.get(api.constants.TRACE_CONTEXT_HEADER_NAME),

This comment was marked as spam.

This comment was marked as spam.

@matthewloring matthewloring added this to the Beta milestone Feb 20, 2017
@kjin kjin merged commit da804af into googleapis:master Feb 21, 2017
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.

4 participants