Skip to content

Commit

Permalink
fix: Remove error flag from x-ray trace root. (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
qhanam committed Aug 18, 2022
1 parent 12c4568 commit b71aaa9
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: AWS RUM Web Client Continuous Build

on:
push:
branches: [main]
branches: [main, release-*.*.*]
pull_request:
branches: [main]
branches: [main, release-*.*.*]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
1 change: 0 additions & 1 deletion src/plugins/event-plugins/FetchPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export class FetchPlugin extends MonkeyPatched<Window, 'fetch'> {
xRayTraceEvent.throttle = true;
} else if (is4xx(response.status)) {
xRayTraceEvent.subsegments[0].error = true;
xRayTraceEvent.error = true;
} else if (is5xx(response.status)) {
xRayTraceEvent.subsegments[0].fault = true;
xRayTraceEvent.fault = true;
Expand Down
1 change: 0 additions & 1 deletion src/plugins/event-plugins/XhrPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ export class XhrPlugin extends MonkeyPatched<XMLHttpRequest, 'send' | 'open'> {
xhrDetails.trace.throttle = true;
} else if (is4xx(xhr.status)) {
xhrDetails.trace.subsegments[0].error = true;
xhrDetails.trace.error = true;
} else if (is5xx(xhr.status)) {
xhrDetails.trace.subsegments[0].fault = true;
xhrDetails.trace.fault = true;
Expand Down
1 change: 0 additions & 1 deletion src/plugins/event-plugins/__tests__/FetchPlugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ describe('FetchPlugin tests', () => {

// Assert
expect(record.mock.calls[0][1]).toMatchObject({
error: true,
subsegments: [
{
error: true,
Expand Down

0 comments on commit b71aaa9

Please sign in to comment.