8000 Add EventBridge rule target analytics by joe4dev · Pull Request #11884 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content
10000

Add EventBridge rule target analytics #11884

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

Merged
merged 1 commit into from
Nov 20, 2024
Merged

Conversation

joe4dev
Copy link
Member
@joe4dev joe4dev commented Nov 20, 2024

Motivation

EventBridge v2 misses analytics to learn more about which targets are matched how frequently and how often they fail.

Changes

  • Add usage analytics for invocations and errors of rule targets

Discussion

The error case currently does not distinguish between expected errors (i.e., AWS parity) and unexpected errors (i.e., not accounted), but I don't know what the AWS behavior here. Currently, we just ignore errors.

@joe4dev joe4dev added the semver: patch Non-breaking changes which can be included in patch releases label Nov 20, 2024
@joe4dev joe4dev added this to the 4.0 milestone Nov 20, 2024
@joe4dev joe4dev self-assigned this Nov 20, 2024
@joe4dev joe4dev marked this pull request as ready for review November 20, 2024 17:01
@joe4dev joe4dev requested a review from maxhoheiser as a code owner November 20, 2024 17:01
Copy link
Member
@maxhoheiser maxhoheiser left a comment

Choose a reason for hiding this comment

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

Nice feature

might be also and idea to track if an archive is added and if events are replayed from an archive

Copy link

LocalStack Community integration with Pro

    2 files      2 suites   1h 3m 46s ⏱️
2 024 tests 1 830 ✅ 194 💤 0 ❌
2 026 runs  1 830 ✅ 196 💤 0 ❌

Results for commit 9e02f40.

@joe4dev
Copy link
Member Author
joe4dev commented Nov 20, 2024

might be also and idea to track if an archive is added and if events are replayed from an archive

@maxhoheiser AWS Request analytics are always captured and start_replay invokes _process_entries, so these counters should also capture rule matching for replays. Do you mean distinguishing replays from other rule matching or something else?

@joe4dev joe4dev merged commit ad1af78 into master Nov 20, 2024
36 checks passed
@joe4dev joe4dev deleted the add-events-rule-analytics branch November 20, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0