Skip to content

Commit

Permalink
fix(monitor): use correct response status
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximBalaganskiy committed Jul 20, 2018
1 parent 44f8c7b commit bf54b40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ class FetchMonitor {
ajaxData.getAbsoluteUrl(),
ajaxData.getPathName(),
ajaxData.ajaxTotalDuration,
(+(ajaxData.status)) >= 200 && (+(ajaxData.status)) < 400,
+response.status,
response.status >= 200 && response.status < 400,
response.status,
ajaxData.method);

// enrich dependency target with correlation context from the server
Expand Down

0 comments on commit bf54b40

Please sign in to comment.