Conversation
Codecov Report
@@ Coverage Diff @@
## main #544 +/- ##
==========================================
+ Coverage 85.33% 85.55% +0.22%
==========================================
Files 128 135 +7
Lines 3170 3274 +104
Branches 730 732 +2
==========================================
+ Hits 2705 2801 +96
- Misses 268 276 +8
Partials 197 197
Continue to review full report at Codecov.
|
|
Took your approach @bruno-garcia and made a very hacky implementation. I first started out with the concept of returning a |
bruno-garcia
left a comment
There was a problem hiding this comment.
Nice! This is going on a great direction!
|
Where's is the hacky code? |
For example where I do |
|
@bruno-garcia went through a couple of iterations, I think this one is okay in regards to streaming events. |
|
If this is okay feature-wise, maybe we can make a cut off, fix tests, refactor & merge this? Looking at the plan, it seems that this makes up a rather significant and self-contained portion of the feature set we're aiming for. (green is done) This way we can keep PRs smaller and break fewer things in between. |
bruno-garcia
left a comment
There was a problem hiding this comment.
Nice! we're almost ready to remove the Draft flag it seems?
I left a few notes, and I used the LOGAF scale. Basically L, M, H as in low medium and high.
benchmarks/Sentry.Benchmarks/BackgroundWorkerFlushBenchmarks.cs
Outdated
Show resolved
Hide resolved
test/Sentry.AspNetCore.Tests/IntegrationMockedBackgroundWorker.cs
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## main #544 +/- ##
==========================================
+ Coverage 85.33% 85.55% +0.22%
==========================================
Files 128 135 +7
Lines 3170 3274 +104
Branches 730 732 +2
==========================================
+ Hits 2705 2801 +96
- Misses 268 276 +8
Partials 197 197
Continue to review full report at Codecov.
|
|
@bruno-garcia implemented dynamic length calculation, moving on to tests now probably. |
|
One more question I realized: should it be |
|
Interestingly enough, |
|
Newtonsoft.Json doesn't actually support async serialization. Our best bet is: public static async Task SerializeToStreamAsync(
object obj,
Stream stream,
CancellationToken cancellationToken = default)
{
using var writer = CreateWriter(stream);
Serializer.Serialize(writer, obj);
await writer.FlushAsync(cancellationToken).ConfigureAwait(false);
}Notably, it's probably going to be the same with System.Text.Json, unless we serialize manually. |
|
@bruno-garcia some mocking magic is failing, I'm guessing it's because |
Codecov Report
@@ Coverage Diff @@
## main #544 +/- ##
==========================================
- Coverage 85.33% 85.16% -0.17%
==========================================
Files 128 137 +9
Lines 3170 3317 +147
Branches 730 749 +19
==========================================
+ Hits 2705 2825 +120
- Misses 268 294 +26
- Partials 197 198 +1
Continue to review full report at Codecov.
|
|
This test seems to never have actually worked: sentry-dotnet/test/Sentry.Tests/HubTests.cs Lines 58 to 71 in 7166cc2 The |
bruno-garcia
left a comment
There was a problem hiding this comment.
Elegant! Thanks for this @Tyrrrz , great stuff!


No description provided.