diff --git a/lib/hooks/core/hook-http.js b/lib/hooks/core/hook-http.js index 34072640c..7bbab4067 100644 --- a/lib/hooks/core/hook-http.js +++ b/lib/hooks/core/hook-http.js @@ -44,7 +44,10 @@ function requestWrap(request) { var root = cls.getRootContext(); if (!root) { - agent.logger.debug('Untraced http options:', options); + if (typeof options === 'string') { + options = url.parse(options); + } + agent.logger.debug('Untraced http uri:', uriFromOptions(options)); return request.apply(this, arguments); } else if (root === SpanData.nullSpan) { return request.apply(this, arguments); diff --git a/lib/trace-writer.js b/lib/trace-writer.js index 95bdd0506..202f34443 100644 --- a/lib/trace-writer.js +++ b/lib/trace-writer.js @@ -193,7 +193,7 @@ TraceWriter.prototype.flushBuffer_ = function(projectId) { // Privatize and clear the buffer. var buffer = this.buffer_; this.buffer_ = []; - + this.logger_.debug('Flushing traces', buffer); this.publish_(projectId, '{"traces":[' + buffer.join() + ']}'); };