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

* add message body to the error reporter context for SNS/SQS #157

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Dosexe
Copy link
Contributor

@Dosexe Dosexe commented May 29, 2024

No description provided.

@Dosexe Dosexe marked this pull request as ready for review May 29, 2024 06:50
@@ -80,7 +80,7 @@ export abstract class AbstractSnsPublisher<MessagePayloadType extends object>
this.handleMessageProcessed(parsedMessage, 'published')
} catch (error) {
const err = error as Error
this.handleError(err)
this.handleError(err, { message: JSON.stringify(message) })
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be conditional in some way. e. g. there could be a protected method on a publisher for serializing the payload

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this relevant for publisher only?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, for all cases, we want to prevent potentially too large or sensitive payloads from being logged

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.

2 participants