8000 Re-introduce error analytics for EventBridge rule error by joe4dev · Pull Request #11935 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

Re-introduce error analytics for EventBridge rule error #11935

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 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion localstack-core/localstack/services/events/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
TargetSenderDict,
TargetSenderFactory,
)
from localstack.services.events.usage import rule_invocation
from localstack.services.events.usage import rule_error, rule_invocation
from localstack.services.events.utils import (
TARGET_ID_PATTERN,
extract_event_bus_name,
Expand Down Expand Up @@ -2165,6 +2165,7 @@ def _process_rules(
target_sender.process_event(event_formatted.copy())
rule_invocation.record(target_sender.service)
except Exception as error:
rule_error.record(target_sender.service)
# Log the error but don't modify the response
LOG.info(
json.dumps(
Expand Down
Loading
0