[WIP] feat: Improve pdata::otap::testing module and expose it to other crates#2349
Draft
JakeDern wants to merge 3 commits intoopen-telemetry:mainfrom
Draft
[WIP] feat: Improve pdata::otap::testing module and expose it to other crates#2349JakeDern wants to merge 3 commits intoopen-telemetry:mainfrom
JakeDern wants to merge 3 commits intoopen-telemetry:mainfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2349 +/- ##
==========================================
- Coverage 87.57% 87.55% -0.02%
==========================================
Files 571 575 +4
Lines 194512 196696 +2184
==========================================
+ Hits 170346 172224 +1878
- Misses 23640 23946 +306
Partials 526 526
🚀 New features to boost your workflow:
|
Contributor
Author
|
This is a stacked diff on #2346 and most commits belong to that PR. Will publish this after that goes in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Summary
This is another PR on the path to #2289. During my initial implementation, I realized that a lot of tests were generating invalid otap batches. In order to make that easier, I've updated the logs/metrics/traces macros in the pdata crate to automatically fill in anything required to be spec compliant based on what's been specified. I had a half-baked version of this before, but now that we have the spec we can do this properly.
I've also added a
testingfeature which lets these be consumed across other crates.What issue does this PR close?
How are these changes tested?
Unit.
Are there any user-facing changes?
No