feat: add PartialEq and Eq traits to TracerMetadata#1922
Conversation
Clippy Allow Annotation ReportComparing clippy allow annotations between branches:
Summary by Rule
Annotation Counts by File
Annotation Stats by Crate
About This ReportThis report tracks Clippy allow annotations for specific rules, showing how they've changed in this PR. Decreasing the number of these annotations generally improves code quality. |
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-unknown-linux-gnu
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1922 +/- ##
=======================================
Coverage 71.73% 71.74%
=======================================
Files 434 434
Lines 69951 69967 +16
=======================================
+ Hits 50182 50200 +18
+ Misses 19769 19767 -2
🚀 New features to boost your workflow:
|
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 9aaa002 | Docs | Datadog PR Page | Give us feedback! |
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
# What does this PR do? Derives Hash on TracerMetadata, allowing instances to be used as keys in hash-based collections such as HashMap and HashSet. # Motivation Needed for DataDog/serverless-components#51 (comment) # Additional Notes Follows [feat: add PartialEq and Eq traits to TracerMetadata](#1922). # How to test the change? Unit tests. Co-authored-by: duncan.harvey <duncan.harvey@datadoghq.com>
What does this PR do?
Derives PartialEq and Eq on TracerMetadata, enabling equality comparisons between instances using
==and!=.Motivation
Adding these standard library traits enables equality assertions without requiring callers to implement their own field by field comparison. Needed for DataDog/serverless-components#51 (comment)
Additional Notes
How to test the change?
Unit tests