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

pkg/logentry/stages: Stage must call next stage to continue processing #1375

Closed
wants to merge 2 commits into from
Closed

pkg/logentry/stages: Stage must call next stage to continue processing #1375

wants to merge 2 commits into from

Conversation

pstibrany
Copy link
Member

Stage can now decide whether processing should continue or not by
calling or not calling next stage in the chain.

This allows implementing more complex stages, eg. multiline stage.

This is just a proof of concept to show the idea of stage chains.

Stage can now decide whether processing should continue or not by
calling or not calling next stage in the chain.

This allows implementing more complex stages, eg. multiline stage.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
Don't use new pipelineChain for each stage, reuse existing one.
Don't call time.Since if not needed.
Don't allocate new resultChain for each benchmark iteration.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
@stale
Copy link

stale bot commented Jan 11, 2020

This issue has been automatically marked as stale because it has not had any activity in the past 30 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale A stale issue or PR that will automatically be closed. label Jan 11, 2020
@mattmendick mattmendick added the keepalive An issue or PR that will be kept alive and never marked as stale. label Jan 17, 2020
@stale stale bot removed the stale A stale issue or PR that will automatically be closed. label Jan 17, 2020
@cyriltovena
Copy link
Contributor

Closing in favor of #1380, which contains this already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keepalive An issue or PR that will be kept alive and never marked as stale.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants