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

feat: add telemetry/alerts via sns #1411

Merged
merged 13 commits into from
Mar 4, 2024

Conversation

iamKunalGupta
Copy link
Member

No description provided.

@iamKunalGupta iamKunalGupta force-pushed the feat/add-telemetry-for-monitoring branch from 4d9ecb1 to 4f6b049 Compare February 29, 2024 23:02
@iamKunalGupta iamKunalGupta changed the title feat: add telemetry via sns feat: add telemetry/alerts via sns Feb 29, 2024
@iamKunalGupta iamKunalGupta force-pushed the feat/add-telemetry-for-monitoring branch from 6463891 to 1d73e87 Compare March 1, 2024 16:42
@iamKunalGupta iamKunalGupta marked this pull request as ready for review March 1, 2024 16:43
@iamKunalGupta iamKunalGupta force-pushed the feat/add-telemetry-for-monitoring branch from 1d73e87 to 33fa24d Compare March 1, 2024 17:02

func NewSNSMessageSenderWithNewClient(ctx context.Context, config *SNSMessageSenderConfig) (SNSMessageSender, error) {
// Topic Region must match client region
region := strings.Split(strings.TrimPrefix(config.Topic, "arn:aws:sns:"), ":")[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

Use strings.Cut: https://pkg.go.dev/strings#Cut
May also want strings.CutPrefix with error if Topic is lacking prefix

@iamKunalGupta iamKunalGupta marked this pull request as draft March 1, 2024 18:22
@iamKunalGupta iamKunalGupta force-pushed the feat/add-telemetry-for-monitoring branch from a935a42 to a616dc5 Compare March 4, 2024 18:44
@iamKunalGupta iamKunalGupta marked this pull request as ready for review March 4, 2024 18:45
@iamKunalGupta iamKunalGupta enabled auto-merge (squash) March 4, 2024 18:53
@iamKunalGupta iamKunalGupta merged commit 67fd5d3 into main Mar 4, 2024
7 checks passed
@iamKunalGupta iamKunalGupta deleted the feat/add-telemetry-for-monitoring branch March 4, 2024 18:54
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.

4 participants