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

Remove the simple Process in favor of ProcessBatch #39316

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bogdandrutu
Copy link
Member

No description provided.

Copy link
Member

@andrzej-stencel andrzej-stencel left a comment

Choose a reason for hiding this comment

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

It seems this PR is not complete? Running make test in pkg/stanza throws a bunch of errors related to missing Process method.

@@ -38,8 +38,6 @@ type Operator interface {
CanProcess() bool
// ProcessBatch processes a batch of entries from an operator.
ProcessBatch(context.Context, []*entry.Entry) error
// Process will process an entry from an operator.
Process(context.Context, *entry.Entry) error
Copy link
Member

Choose a reason for hiding this comment

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

This is a breaking change in public API of the package github.com/open-telemetry/opentelemetry-collector-contrib/pkg/stanza/operator. If we want to remove this, probably deprecating first would be good? What do you think @djaglowski?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants