-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
feat(telemetrygen): support integer attributes in telemetrygen tool (… #38410
Conversation
There was a problem hiding this 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
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
…#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.