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 logging for egress intermediate steps in request middleware. #9

Open
andyday opened this issue May 11, 2017 · 0 comments
Open

Add logging for egress intermediate steps in request middleware. #9

andyday opened this issue May 11, 2017 · 0 comments

Comments

@andyday
Copy link
Contributor

andyday commented May 11, 2017

Optionally support logging http client events like this:

{
  "logs":[
    {"timestamp":1497222006934389,"event":"connect"},
    {"timestamp":1497222006934444,"event":"continue"},
    {"timestamp":1497222006934444,"event":"response"}
  ]
}

It should support all http client events.

This feature should be enabled with the following option:

const request = require('ctrace-js').request

request.init(..., {
  logEvents: true   // enables logging http client events using traced request-promise - defaults to false
})
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

No branches or pull requests

1 participant