Skip to content
This repository was archived by the owner on Oct 2, 2021. It is now read-only.

Now we send more telemetry information for some errors#319

Merged
roblourens merged 3 commits intomicrosoft:masterfrom
digeff:more_telemetry_on_errors
Apr 2, 2018
Merged

Now we send more telemetry information for some errors#319
roblourens merged 3 commits intomicrosoft:masterfrom
digeff:more_telemetry_on_errors

Conversation

@digeff
Copy link
Contributor

@digeff digeff commented Mar 29, 2018

We want all rejections and throws to be errors so we can get a call stack for telemetry

private _message: DebugProtocol.Message;

constructor (message: DebugProtocol.Message) {
super(message.format);
Copy link
Member

Choose a reason for hiding this comment

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

The error message won't include values inserted with {0}, we should include those, even if we just concatenate them to the end.

src/errors.ts Outdated
this._message = message;
}

public get id(): number {
Copy link
Member

Choose a reason for hiding this comment

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

I think this object needs to be JSON.stringified as a DebugProtocol.Message. I think this will include the message under _message but won't be in the shape of a message?

Maybe just copy all the values off the message onto this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@roblourens roblourens merged commit 4add51b into microsoft:master Apr 2, 2018
@digeff digeff deleted the more_telemetry_on_errors branch April 2, 2018 18:19
@roblourens roblourens added this to the March 2018 milestone Apr 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants