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

Extend kafkareceiver configuration capabilities #5677

Merged
merged 6 commits into from
Oct 15, 2021

Conversation

trasc
Copy link
Contributor

@trasc trasc commented Oct 8, 2021

Description: Extend the kafkareceiver's configuration capabilities to be able to control the offsets autocommit and message marking strategy.

Link to tracking Issue: n/a

Testing: No regressions in local testing.

Documentation: kafkareceiver documentation was updated to reflect the changes

@trasc trasc requested review from a team and mx-psi October 8, 2021 07:34
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 8, 2021

CLA Signed

The committers are authorized under a signed CLA.

  • ✅ Traian Schiau (9d2bd2f7f0647536a01419c624600a4f459e84af, 735b8c7fb03152a1db901686e6ab054febb10a8b, d7fd8b0c8b0a473c4098141e036d8abd8ec4928b)

@trasc trasc changed the title Extemd kafkareceiver configuration capabilities Extend kafkareceiver configuration capabilities Oct 8, 2021
@tigrannajaryan
Copy link
Member

@open-telemetry/collector-approvers This component does not have codeowners. Anyone interested to be one and/or help review this PR?

@jpkrohling
Copy link
Member

If we don't have volunteers by Monday, I'll take it.

@trasc
Copy link
Contributor Author

trasc commented Oct 12, 2021

If we don't have volunteers by Monday, I'll take it.

It looks like, we don't.

@jpkrohling jpkrohling self-requested a review October 12, 2021 11:32
Copy link
Member

@jpkrohling jpkrohling left a comment

Choose a reason for hiding this comment

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

Looks good, but I have a question about whether session.Commit is being called twice on the happy path.

receiver/kafkareceiver/config.go Outdated Show resolved Hide resolved
receiver/kafkareceiver/kafka_receiver.go Show resolved Hide resolved
receiver/kafkareceiver/kafka_receiver.go Show resolved Hide resolved
receiver/kafkareceiver/kafka_receiver.go Show resolved Hide resolved
@trasc trasc requested a review from jpkrohling October 12, 2021 12:49
@trasc
Copy link
Contributor Author

trasc commented Oct 14, 2021

@tigrannajaryan, Is there something else I should do at this point?

@jpkrohling jpkrohling added the ready to merge Code review completed; ready to merge by maintainers label Oct 14, 2021
receiver/kafkareceiver/config.go Outdated Show resolved Hide resolved
receiver/kafkareceiver/README.md Outdated Show resolved Hide resolved
Traian Schiau and others added 6 commits October 15, 2021 09:04
Make the autocommit functionality configurable. Giving the option to
disable it or change the interval.
Make the time and condition of the message marking configurable.
The messages could be marked before or after they are processed by
the pipeline and could depend on the processing result.
@trasc trasc force-pushed the extemd_kafka_rcv_conf branch from 836755a to 157a237 Compare October 15, 2021 09:33
@trasc
Copy link
Contributor Author

trasc commented Oct 15, 2021

Can we get a rerun for the unit tests? It looks like #5726 but:

  • it has nothing to do with kafkareceiver
  • it should be already fixed
  • it passes in local runs

@mx-psi
Copy link
Member

mx-psi commented Oct 15, 2021

@trasc re-running...

@bogdandrutu bogdandrutu merged commit 91b03e6 into open-telemetry:main Oct 15, 2021
@trasc trasc deleted the extemd_kafka_rcv_conf branch October 18, 2021 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants