Skip to content

data flow architecture, add debug, fmt#2

Merged
SRodi merged 3 commits into
mainfrom
event-flow
Aug 6, 2025
Merged

data flow architecture, add debug, fmt#2
SRodi merged 3 commits into
mainfrom
event-flow

Conversation

@SRodi
Copy link
Copy Markdown
Owner

@SRodi SRodi commented Aug 6, 2025

This pull request introduces improvements to documentation, debugging, and observability for the event processing pipeline, as well as minor code style enhancements. The most notable change is the addition of a detailed architectural overview to the documentation, making the system's event flow much clearer for developers. Additionally, new debug logs have been added to help monitor ring buffer activity and diagnose storage query behavior.

Documentation improvements:

  • Added a comprehensive "Event Flow Architecture" section to README.md, including a diagram and detailed explanation of how events move from eBPF programs through ring buffers, event parsers, and into memory storage and the API layer.

Debugging and observability:

  • Added debug logging in internal/programs/base.go to log every 100th event processed by a ring buffer, aiding in monitoring real-time event throughput.
  • Enhanced internal/storage/memory.go to log detailed information when a storage query with a time filter returns no results, helping diagnose unexpected query behavior.

Code style and readability:

  • Reformatted the RegisterProgram method in the MockManager struct in internal/core/types_test.go for better readability and consistency.

@SRodi SRodi requested a review from Copilot August 6, 2025 20:30

This comment was marked as outdated.

@SRodi SRodi requested a review from Copilot August 6, 2025 21:21

This comment was marked as outdated.

@SRodi SRodi requested a review from Copilot August 6, 2025 21:25
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request improves the event processing pipeline's documentation, debugging capabilities, and code style. The main focus is enhancing developer understanding of the system architecture and providing better observability for runtime monitoring.

Key changes:

  • Added comprehensive event flow architecture documentation with visual diagrams
  • Implemented debug logging for ring buffer activity monitoring
  • Enhanced storage query debugging capabilities
  • Applied code style improvements for better readability

Reviewed Changes

Copilot reviewed 3 out of 18 changed files in this pull request and generated 2 comments.

File Description
README.md Added detailed "Event Flow Architecture" section with diagrams explaining how events move through the eBPF pipeline
internal/programs/base.go Added debug logging to track ring buffer event processing every 100 events
internal/core/types_test.go Reformatted MockManager.RegisterProgram method for improved readability

Comment thread internal/programs/base.go
Comment thread internal/programs/base.go
@SRodi SRodi merged commit 34355a6 into main Aug 6, 2025
5 checks passed
@SRodi SRodi deleted the event-flow branch August 6, 2025 21:27
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