Skip to content

Commit

Permalink
Merge pull request #129 from mithunjohny/users/mithunj/errorDataMissing
Browse files Browse the repository at this point in the history
Adding response data to exception details telemetry
  • Loading branch information
mithunjohny authored Nov 22, 2024
2 parents 729b5c9 + 6a0ee13 commit 2c89a30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Fixed

- Updating exception details telemetry with response data axios field

## [0.5.8]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/SDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ export default class SDK implements ISDK {
RequestPath: requestPath,
RequestMethod: method,
ResponseStatusCode: response ? response.status : error ? (error as any).response?.status : undefined, // eslint-disable-line @typescript-eslint/no-explicit-any
ExceptionDetails: error,
ExceptionDetails: error ? (error as any).response?.data || error : undefined,
RequestPayload: sanitizedRequestPayload,
RequestHeaders: sanitizedRequestHeaders,
ResponseErrorcode: error ? (error as any).response?.headers?.errorcode : undefined // eslint-disable-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit 2c89a30

Please sign in to comment.