-
Notifications
You must be signed in to change notification settings - Fork 131
Conversation
@tiffon @saminzadeh could you please take a look at the build failures? All seem to be related to the error below, a transitive dependency of
|
@yurishkuro Looks related to running node I would say we can either file a bug with request because their upgrade is a breaking change or change our |
@@ -30,7 +30,7 @@ export default class LoggingReporter { | |||
} | |||
|
|||
report(span: Span): void { | |||
this._logger.info(`Reporting span ${JSON.stringify(span)}`); | |||
this._logger.info(`Reporting span ${span.context().toString()}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interpolated values are automatically converted to strings:
`${{toString: () => 'abc'}}`
// -> "abc"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't follow. IIRC Javascript does not have Java's convention of automatically calling toString()
method when converting to strings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JS does call toString()
when converting to string.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString
Every object has a toString() method that is automatically called when the object is to be represented as a text value or when an object is referred to in a manner in which a string is expected.
The It seems like we're only using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The .toString()
call is unnecessary, but its a minor issue.
@yurishkuro Can't we just build the src code with Node 4 (or above) and pipe it through babel so its compatible with Node 0.10? |
@saminzadeh we can, but it makes the build a lot more complicated because we want the unit and integration tests run on the actual Node version from Travis matrix. Besides, this |
* fix: minor fix * fix: remove _ prefix from params
Resolves #123