Skip to content

Conversation

@paulojmdias
Copy link
Member

@paulojmdias paulojmdias commented Aug 28, 2025

Description

Adding support for leader election using k8sleaderelector extension.

Link to tracking issue

Fixes #42266

Testing

Added the test TestReceiverWithLeaderElection.

I'm just missing testing it in a real scenario, but I will do it next week. However, I marked it as ready for review for discussing the logic and structure 🙏

Documentation

Updated README.md with the example of how it can be used.

paulojmdias and others added 5 commits August 28, 2025 22:07
…lector extension

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
@paulojmdias paulojmdias marked this pull request as ready for review August 30, 2025 13:39
Copy link
Member

@ChrsMark ChrsMark left a comment

Choose a reason for hiding this comment

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

Thank's for working on this!

The change looks mostly good to me with a question regarding how we should handle leadership changes across all similar components for consistency+accuracy.

paulojmdias and others added 3 commits September 8, 2025 23:30
…-contrib into feat/42266

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
ChrsMark and others added 7 commits September 10, 2025 11:49
Copy link
Member

@ChrsMark ChrsMark left a comment

Choose a reason for hiding this comment

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

LGTM but let's ensure we are consistent on how we consume the extension in different components: #42330 (comment)

@dmitryax please take a look too

@paulojmdias
Copy link
Member Author

@ChrsMark issues opened:

If someone can assign it to me, I really appreciate it 🙌

paulojmdias and others added 5 commits September 19, 2025 23:26
…-contrib into feat/42266

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
…-contrib into feat/42266

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
…lector-contrib into feat/42266

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
@TylerHelmuth TylerHelmuth merged commit 38e9bd6 into open-telemetry:main Sep 26, 2025
185 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 26, 2025
@paulojmdias paulojmdias deleted the feat/42266 branch September 26, 2025 20:28
atoulme pushed a commit that referenced this pull request Sep 28, 2025
…rmer handler (#43018)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

As discussed in the following
[thread](#42330 (comment)),
I decided to open a dedicated PR for this.

The change just makes the code safer, as before we were assuming the
object was always an Event, which could panic if it wasn’t. Now we check
first, and skip anything that isn’t an Event.

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
atoulme pushed a commit that referenced this pull request Sep 30, 2025
…e is lost (#43054)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Similar to what we did in #42330, this PR ensures similarity and puts
the receiver in stand-by instead of shutdown when `k8sleaderelector` is
used.

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes #42706

<!--Describe what testing was performed and which tests were added.-->
#### Testing

Tested locally, and tests were not changed to ensure the current
receiver is not affected at all.

<!--Please delete paragraphs that you did not use before submitting.-->

---------

Signed-off-by: Paulo Dias <paulodias.gm@gmail.com>
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.

[receiver/k8sevents] Implement leader election

5 participants