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

[receiver/mongodb] Use metrics builder for resource metrics #9759

Merged
merged 1 commit into from
May 5, 2022

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented May 5, 2022

This change refactors the receiver to rely more on generated code.

The only functional change:
Metrics scope name is changed from otelcol/mongodb to otelcol/mongodbreceiver

This change refactors the receiver to rely more on generated code.

The only functional change:
Metrics scope name is changed from `otelcol/mongodb` to `otelcol/mongodbreceiver`
@dmitryax dmitryax requested review from a team and djaglowski as code owners May 5, 2022 19:37
@dmitryax
Copy link
Member Author

dmitryax commented May 5, 2022

Another issue uncovered after this change: #9760

Copy link
Member

@TylerHelmuth TylerHelmuth left a comment

Choose a reason for hiding this comment

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

LGTM

@dmitryax dmitryax added the ready to merge Code review completed; ready to merge by maintainers label May 5, 2022
database:
description: The name of a database.
type: string

attributes:
database:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it expected to have the attribute and resource_attribute be a duplicate of one another?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this is current behavior. I submitted a separate issue to address that #9760

@bogdandrutu bogdandrutu merged commit aaf3dd3 into open-telemetry:main May 5, 2022
djaglowski pushed a commit to djaglowski/opentelemetry-collector-contrib that referenced this pull request May 10, 2022
…emetry#9759)

This change refactors the receiver to rely more on generated code.

The only functional change:
Metrics scope name is changed from `otelcol/mongodb` to `otelcol/mongodbreceiver`
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.

None yet

6 participants