Skip to content

[receiver_creator] Fix kafkametrics receiver instantiation #39395

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

Merged

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Apr 14, 2025

Description

Fix dynamic start of kafka metrics receiver

Link to tracking issue

Fixes #39313. The issue is caused by adding the custom unmarshaler to the kafka metrics receiver, specifically this line. The extra Unmashall call seems to be redundant. However, it's an establish practice in other receivers. So I don't want to change that yet. The change in receiver_creator also resolves the problem and doesn't have any side effects.

Testing

Follow reproducing steps from the issue

@dmitryax dmitryax merged commit f840bdf into open-telemetry:main Apr 15, 2025
174 of 175 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 15, 2025
akshays-19 pushed a commit to akshays-19/opentelemetry-collector-contrib that referenced this pull request Apr 23, 2025
…metry#39395)

#### Description
Fix dynamic start of kafka metrics receiver

#### Link to tracking issue
Fixes
open-telemetry#39313.
The issue is caused by adding the custom unmarshaler to the kafka
metrics receiver, specifically [this
line](https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/38634/files#diff-ac118f5e10dc8be3556f9c7b192ca2a98161c1289a5a0bc9ddaa812e397acfaaR65).
The extra `Unmashall` call seems to be redundant. However, it's an
establish practice in other receivers. So I don't want to change that
yet. The change in `receiver_creator` also resolves the problem and
doesn't have any side effects.

#### Testing
Follow reproducing steps from the issue
Fiery-Fenix pushed a commit to Fiery-Fenix/opentelemetry-collector-contrib that referenced this pull request Apr 24, 2025
…metry#39395)

#### Description
Fix dynamic start of kafka metrics receiver

#### Link to tracking issue
Fixes
open-telemetry#39313.
The issue is caused by adding the custom unmarshaler to the kafka
metrics receiver, specifically [this
line](https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/38634/files#diff-ac118f5e10dc8be3556f9c7b192ca2a98161c1289a5a0bc9ddaa812e397acfaaR65).
The extra `Unmashall` call seems to be redundant. However, it's an
establish practice in other receivers. So I don't want to change that
yet. The change in `receiver_creator` also resolves the problem and
doesn't have any side effects.

#### Testing
Follow reproducing steps from the issue
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_creator doesn't work with kafkametrics receiver in 0.123.0
3 participants