Skip to content

Commit

Permalink
Send the XHarness target OS telemetry property when available (#8128)
Browse files Browse the repository at this point in the history
  • Loading branch information
premun committed Nov 2, 2021
1 parent 1aa163d commit 03c5e4f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
custom_dimensions['target'] = operation['target'] + '_' + operation['targetOS']
else:
custom_dimensions['target'] = operation['target']
elif 'targetOS' in operation:
custom_dimensions['target'] = operation['targetOS']

app_insights.send_metric('XHarnessOperation', operation['exitCode'], properties=custom_dimensions)
app_insights.send_metric('XHarnessOperationDuration', operation['duration'], properties=custom_dimensions)

0 comments on commit 03c5e4f

Please sign in to comment.