Skip to content

Conversation

@itssaharsh
Copy link
Contributor

@itssaharsh itssaharsh commented Jan 4, 2026

Add test cases for Key.Emit() values:

  • BoolSliceValue
  • IntValue
  • IntSliceValue

Copilot AI review requested due to automatic review settings January 4, 2026 18:46
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 4, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds test coverage for BoolSliceValue in the Key.Emit() method, which was previously missing from the test suite.

  • Adds a new test case for BoolSliceValue type in the TestEmit function
  • The test verifies that BoolSliceValue emits the correct string representation format

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@flc1125 flc1125 left a comment

Choose a reason for hiding this comment

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

Based on the tests for Emit(), similar ones such as IntValue and IntSliceValue are also missing. Would you be willing to add those as well.

@pellared pellared added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jan 5, 2026
@pellared pellared changed the title Add test In Key.Emit() with BoolSliceValue attribute: add test cases in TestEmit Jan 5, 2026
Copy link
Member

@pellared pellared left a comment

Choose a reason for hiding this comment

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

Please fix the lint issue. Otherwise, LGTM

@itssaharsh
Copy link
Contributor Author

Please fix the lint issue. Otherwise, LGTM

Hey, tried that i am new to contributing to otel where should move from this file . I want to add features /fix bugs but I was currently only able to understand the code I edited

@pellared pellared requested a review from flc1125 January 5, 2026 12:58
@MrAlias MrAlias added the pkg:attribute Related to the attribute package label Jan 5, 2026
@MrAlias MrAlias changed the title attribute: add test cases in TestEmit Add test cases to TestEmit in attribute Jan 5, 2026
@MrAlias MrAlias merged commit 3dc4ccc into open-telemetry:main Jan 5, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg:attribute Related to the attribute package Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants