Skip to content

appsec: change log WAF 'too many event' from Warn to Error#3100

Merged
eliottness merged 1 commit into
mainfrom
flavien/appsec-on-error
Jan 17, 2025
Merged

appsec: change log WAF 'too many event' from Warn to Error#3100
eliottness merged 1 commit into
mainfrom
flavien/appsec-on-error

Conversation

@e-n-0

@e-n-0 e-n-0 commented Jan 17, 2025

Copy link
Copy Markdown
Member

What does this PR do?

Change the log of too many Appsec WAF event from Warn to Error.

Motivation

The log can be sometimes spammy (cf run inside macrobenchmarks). Setting this log to Error can use the deduplication of errors.

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.
  • For internal contributors, a matching PR should be created to the v2-dev branch and reviewed by @DataDog/apm-go.

Unsure? Have a question? Request a review!

@e-n-0
e-n-0 requested review from a team as code owners January 17, 2025 15:05
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Jan 17, 2025

Copy link
Copy Markdown

Datadog Report

Branch report: flavien/appsec-on-error
Commit report: 1f78e08
Test service: dd-trace-go

✅ 0 Failed, 5185 Passed, 72 Skipped, 2m 32.11s Total Time

@e-n-0
e-n-0 force-pushed the flavien/appsec-on-error branch from 598a6fa to 1f71193 Compare January 17, 2025 15:29
@eliottness
eliottness enabled auto-merge (squash) January 17, 2025 15:29
@eliottness
eliottness merged commit 382c311 into main Jan 17, 2025
@eliottness
eliottness deleted the flavien/appsec-on-error branch January 17, 2025 15:35
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