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

feat(telemetrygen): support integer attributes in telemetrygen tool (… #38410

Merged

Conversation

giacomofeltrin
Copy link
Contributor

#38392)

Description
Introduced support for integer attributes in the telemetrygen tool. Previously, the tool required all telemetry attribute values to be strings wrapped in double quotes, which limited the ability to generate realistic test data with integer values. This change extends the existing attribute handling to correctly process integer values. The --telemetry-attributes flag now supports both quoted string values and unquoted integer values.

Link to tracking issue
Fixes [#38392]

Documentation
Updated documentation for the --telemetry-attributes flag to reflect the new support for integer attributes and provide examples of both string and integer usage.

@giacomofeltrin giacomofeltrin requested review from mx-psi, codeboten and a team as code owners March 6, 2025 00:12
Copy link

linux-foundation-easycla bot commented Mar 6, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@github-actions github-actions bot added the cmd/telemetrygen telemetrygen command label Mar 6, 2025
@github-actions github-actions bot requested a review from Erog38 March 6, 2025 00:12
@andrzej-stencel andrzej-stencel added the ready to merge Code review completed; ready to merge by maintainers label Mar 6, 2025
Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

Could you add a changelog entry? This is the changelog process

@andrzej-stencel andrzej-stencel removed the ready to merge Code review completed; ready to merge by maintainers label Mar 6, 2025
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @giacomofeltrin! Please add a test to validate int input works as expected. An example of this is the PR to add support for bool value types: https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/34558/files#diff-c4ca8592f264dfa745089fe14367c03ab5e87693bfacf4c1aaf6b80c47023be5

Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

🎉

@atoulme atoulme merged commit 542faeb into open-telemetry:main Mar 7, 2025
156 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/telemetrygen telemetrygen command
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants