mirror of
https://github.com/hansjone/netx.git
synced 2026-10-12 04:10:47 +08:00
Drop HTTP polling noise from operation audit by default.
Persist only business events and mutating/failed HTTP calls, and default the audit UI to a business view with an explicit HTTP filter. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
8915455b52
commit
c181158209
8 changed files with 196 additions and 24 deletions
|
|
@ -167,7 +167,8 @@ class Settings(BaseSettings):
|
|||
docs_enabled: bool = False
|
||||
# Refuse start when bind host is non-loopback and insecure defaults remain.
|
||||
allow_insecure_defaults: bool = False
|
||||
# Async audit writer; sample_n>1 keeps 1/N of generic http.* events.
|
||||
# Async audit writer. Successful GET http.* are dropped; mutating http.* always kept.
|
||||
# sample_n only applies to leftover unclassified events.
|
||||
audit_async: bool = True
|
||||
audit_sample_n: int = 5
|
||||
# Prefer Alembic on API start; brownfield patches live in schema_patches + revisions.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue