Skip to content
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

Provide default implementation for event_enabled trait in LogProcessor #2025

Merged
merged 3 commits into from
Aug 14, 2024

Conversation

cijothomas
Copy link
Member

@cijothomas cijothomas commented Aug 14, 2024

Provide default implementation for event_enabled trait in LogProcessor, so only those implementations that care about this feature need to implement and override the method. Less thing for LogProcessor author to worry about.

I am also thinking we should do default implementation for flush, shutdown as well, and only those processor that need to care about them should override it. For example, If one were writing a EnrichProcessor, it has no interest in flush or shutdown. If this direction is accepted, I can send similar change for Flush, Shutdown as well.

@cijothomas cijothomas requested a review from a team August 14, 2024 03:00
@cijothomas cijothomas merged commit 286cb6c into open-telemetry:main Aug 14, 2024
22 of 23 checks passed
@cijothomas cijothomas deleted the cijothomas/default-enable branch August 14, 2024 04:03
cijothomas added a commit to cijothomas/opentelemetry-rust that referenced this pull request Aug 14, 2024
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