Skip to content

[connector/count] Support all attribute types#43768

Merged
atoulme merged 2 commits intoopen-telemetry:mainfrom
SquidDev:countconnector-attrs
Nov 23, 2025
Merged

[connector/count] Support all attribute types#43768
atoulme merged 2 commits intoopen-telemetry:mainfrom
SquidDev:countconnector-attrs

Conversation

@SquidDev
Copy link
Contributor

Description

The count connector currently implements its own parsing and copying logic for attributes. This means that attributes with non-supported types (e.g. booleans) are converted to the empty string.

We replace this custom logic with a more standard CopyTo and FromRaw.

Testing

All existing tests pass unchanged. There is a new test that asserts common attribute types (string, int, double, bool) can be copied.

@SquidDev SquidDev requested a review from a team as a code owner October 24, 2025 09:48
@SquidDev SquidDev requested a review from fatsheep9146 October 24, 2025 09:48
The count connector currently implements its own parsing and copying
logic for attributes. This means that attributes with non-supported
types (e.g. booleans) are converted to the empty string.

We replace this custom logic with a more standard CopyTo and FromRaw.
@github-actions github-actions bot added the first-time contributor PRs made by new contributors label Oct 24, 2025
@github-actions
Copy link
Contributor

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

@github-actions
Copy link
Contributor

Welcome, contributor! Thank you for your contribution to opentelemetry-collector-contrib.

Important reminders:

A maintainer will review your pull request soon. Thank you for helping make OpenTelemetry better!

@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2025

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Nov 8, 2025
@SquidDev
Copy link
Contributor Author

SquidDev commented Nov 8, 2025

It's not stale, it's waiting for review.

@github-actions github-actions bot removed the Stale label Nov 9, 2025
}

func (i *MetricInfo) validateAttributes() error {
tmp := pcommon.NewValueEmpty()
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: This naming is a bit strange to me but I do see the same convention used in another component doing the same validation

@akats7
Copy link
Contributor

akats7 commented Nov 18, 2025

Looks like we need a maintainer to get the checks to run

@atoulme atoulme added ready to merge Code review completed; ready to merge by maintainers and removed waiting-for-code-owners labels Nov 20, 2025
@SquidDev
Copy link
Contributor Author

compile: writing output: write $WORK/b4846/_pkg_.a: no space left on device

Well, I don't think that's caused by me. I have merged in master to see if that helps.

@atoulme atoulme merged commit a5e28d6 into open-telemetry:main Nov 23, 2025
189 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 23, 2025
@otelbot
Copy link
Contributor

otelbot bot commented Nov 23, 2025

Thank you for your contribution @SquidDev! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. If you are getting started contributing, you can also join the CNCF Slack channel #opentelemetry-new-contributors to ask for guidance and get help.

@SquidDev SquidDev deleted the countconnector-attrs branch November 23, 2025 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connector/count first-time contributor PRs made by new contributors ready to merge Code review completed; ready to merge by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants