Skip to content

Fix initialization of error prop in telemetry event#1961

Merged
dgolovin merged 3 commits intoredhat-developer:masterfrom
dgolovin:i1959
Feb 16, 2021
Merged

Fix initialization of error prop in telemetry event#1961
dgolovin merged 3 commits intoredhat-developer:masterfrom
dgolovin:i1959

Conversation

@dgolovin
Copy link
Copy Markdown
Collaborator

This PR fixes #1959. It fixes error property initialization
for command telemetry event and introduces telemetryMessage
to VsCommandException class to provide messages without
user sensitive information. When VsCommandException is
triggered the exception's message shown in vscode Error
message notification and telemetryMessage sent in telemetry
event error property. All unknown exceptions are always
reported to user by vscode and as 'Unknown exception happened'
in telemetry event error property. The fix also introduces
'cancelled' property to indicate if command was cancelled
by user.

Signed-off-by: Denis Golovin dgolovin@redhat.com

This PR fixes redhat-developer#1959. It fixes error property initialization
for command telemetry event and introduces telemetryMessage
to VsCommandException class to provide messages without
user sensitive information. When VsCommandException is
triggered the exception's message shown in vscode Error
message notification and telemetryMessage sent in telemetry
event `error` property. All unknown exceptions are always
reported to user by vscode and as 'Unknown exception happened'
in telemetry event error property. The fix also introduces
'cancelled' property to indicate if command was cancelled
by user.

Signed-off-by: Denis Golovin dgolovin@redhat.com
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 12, 2021

Codecov Report

Merging #1961 (474440a) into master (13345ef) will increase coverage by 0.08%.
The diff coverage is 92.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1961      +/-   ##
==========================================
+ Coverage   81.04%   81.12%   +0.08%     
==========================================
  Files          43       43              
  Lines        2843     2850       +7     
  Branches      531      533       +2     
==========================================
+ Hits         2304     2312       +8     
+ Misses        539      538       -1     
Impacted Files Coverage Δ
src/k8s/route.ts 31.81% <0.00%> (ø)
src/vscommand.ts 91.48% <84.21%> (+3.98%) ⬆️
src/k8s/build.ts 97.50% <100.00%> (ø)
src/k8s/deployment.ts 97.29% <100.00%> (ø)
src/odo.ts 77.64% <100.00%> (ø)
src/openshift/application.ts 100.00% <100.00%> (ø)
src/openshift/cluster.ts 86.47% <100.00%> (ø)
src/openshift/component.ts 86.19% <100.00%> (ø)
src/openshift/project.ts 97.72% <100.00%> (ø)
src/openshift/service.ts 100.00% <100.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13345ef...42ae6a3. Read the comment docs.

dgolovin and others added 2 commits February 12, 2021 00:21
Stack trace removes local folder root location from files
in the stack trace.

Signed-off-by: Denis Golovin dgolovin@redhat.com
Signed-off-by: Denis Golovin dgolovin@redhat.com
@dgolovin dgolovin merged commit e7eaf1b into redhat-developer:master Feb 16, 2021
dgolovin added a commit that referenced this pull request Feb 17, 2021
Fixes #1961
Signed-off-by: Denis Golovin dgolovin@redhat.com
dgolovin added a commit that referenced this pull request Feb 17, 2021
Fixes #1961
Signed-off-by: Denis Golovin dgolovin@redhat.com
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

Successfully merging this pull request may close these issues.

Telemetry should report errors without urser related info

1 participant