Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore][cmd/mdatagen] Properly test bytes attribute type (open-teleme…
…try#30106) **Description:** Changes how attributes of type `bytes` are tested, as they were being initialized incorrectly before. **Link to tracking Issue:** Resolves open-telemetry#29923 **Testing:** Fake attribute added for testing: ``` attributes: # Added a fake attribute in a metadata.yaml file fake: description: "Fake attribute for testing" type: bytes ``` Test case generated by `cmd/mdatagen`: ``` attrVal, ok = dp.Attributes().Get("fake") assert.True(t, ok) assert.EqualValues(t, []byte("fake-val"), attrVal.Bytes()) ```
- Loading branch information