Skip to content

feat: Add configuration options to filter logged events via allowlist and denylist - #1380

Draft
vasilyl wants to merge 3 commits into
google:mainfrom
vasilyl:configuration-filters
Draft

feat: Add configuration options to filter logged events via allowlist and denylist#1380
vasilyl wants to merge 3 commits into
google:mainfrom
vasilyl:configuration-filters

Conversation

@vasilyl

@vasilyl vasilyl commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Please ensure you have read the contribution guide before creating a pull request.

Link to Issue or Description of Change

1. Link to an existing issue (if applicable):

  • Closes: N/A

2. Or, if no issue exists, describe the change:

Problem:
In high-traffic production systems, logging every single event (such as every internal tool call or raw LLM trace) to BigQuery can result in massive amounts of log data, leading to excessive storage and ingestion costs.

Solution:
Introduce EventAllowlist and EventDenylist arrays in the configuration. When logging an event, the plugin checks these lists first. If an event is explicitly denied or not explicitly allowed (when an allowlist is defined), the event is ignored and not pushed to the batch processor.

Testing Plan

Added TestEventFiltering which validates that events are allowed or denied correctly according to the configure filters, preventing unauthorized events from being pushed to the stream.

Checklist

  • I have read the CONTRIBUTING.md document.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • I have manually tested my changes end-to-end.

@vasilyl
vasilyl force-pushed the configuration-filters branch from ec95f87 to b572046 Compare August 25, 2026 19:48
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.

1 participant