feat: add Hash trait to TracerMetadata#1931
Conversation
📚 Documentation Check Results📦
|
🔒 Cargo Deny Results📦
|
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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1931 +/- ##
==========================================
- Coverage 71.79% 71.77% -0.02%
==========================================
Files 434 434
Lines 69978 69978
==========================================
- Hits 50239 50227 -12
- Misses 19739 19751 +12
🚀 New features to boost your workflow:
|
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: b04a4bb | Docs | Datadog PR Page | Give us feedback! |
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
|
Co-authored-by: Yann Hamdaoui <yann.hamdaoui@gmail.com>
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.
How to test the change?
Unit tests.