message: Attach just original url to req object in http instrumentation
diff: @@ -59,43 +59,31 @@ var wrappers = {
  // possibility: capture one breadcrumb for "req sent" and one for "res recvd"
  // seems excessive but solves the problem and *is* strictly more information
  // could be useful for weird response sequencing bug scenarios
  - var self = this;
  - OrigClientRequest.call(self, options, cb);
  + OrigClientRequest.call(this, options, cb);
  - // We could just always grab these from self.agent, self.method, self._headers, self.path, etc
  + // We could just always reconstruct this from this.agent, this._headers, this.path, etc
  // but certain other http-instrumenting libraries (like nock, which we use for tests) fail to
  // maintain the guarantee that after calling OrigClientRequest, those fields will be populated
  - var url, method;
  if (typeof options === 'string') {
  - url = options;
  - method = 'GET';
  + this.__ravenBreadcrumbUrl = options;
  } else {
  - url = (options.protocol || '') + '//' +
  + this.__ravenBreadcrumbUrl = (options.protocol || '') + '//' +
  (options.hostname || options.host || '') +
  (options.path || '/');
  - method = options.method || 'GET';
  }
  -
  - this.__ravenBreadcrumbContext = {
  - url: url,
  - method: method
  - };
  };
  util.inherits(ClientRequest, OrigClientRequest);
  fill(ClientRequest.prototype, 'emit', function (origEmit) {
  return function (evt, maybeResp) {
  - if (evt === 'response' && this.__ravenBreadcrumbContext) {
  - console.dir(this);
  - var url = this.__ravenBreadcrumbContext.url;
  - var method = this.__ravenBreadcrumbContext.method;
  - if (!Raven.dsn || url.indexOf(Raven.dsn.host) === -1) {
  + if (evt === 'response' && this.__ravenBreadcrumbUrl) {
  + if (!Raven.dsn || this.__ravenBreadcrumbUrl.indexOf(Raven.dsn.host) === -1) {
  Raven.captureBreadcrumb({
  type: 'http',
  category: 'http',
  data: {
  - method: method,
  - url: url,
  + method: this.method,
  + url: this.__ravenBreadcrumbUrl,
  status_code: maybeResp.statusCode
  }
  });
  