Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aws-xray-sdk-fetch: fix subsegment callback error parameter type #644

Merged
merged 1 commit into from
May 13, 2024

Conversation

EdwardB120
Copy link
Contributor

Issue #, if available:

N/A

Description of changes:

Error can be undefined when subSegmentCallback is called in this scenario, lines 119 to 121 in fetch_p.js.

if (thisSubsegmentCallback) {
    thisSubsegmentCallback(subsegment, requestClone, response);
}

These changes update the type from error: Error to error?: Error | undefined.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@EdwardB120 EdwardB120 requested a review from a team as a code owner May 4, 2024 17:29
@srprash srprash merged commit 58dd586 into aws:master May 13, 2024
12 of 13 checks passed
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.

3 participants