newrelic-dotnet-agent
newrelic-dotnet-agent copied to clipboard
SQS: Rework distributed trace tests
Reworks the SQS container test app to use a background service to receive messages, rather than directly receiving them from an API endpoint. The solution is (mildly) convoluted, but works well.
Updated tests to verify the trace id and parent id match in the produce and consume sides.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 80.86%. Comparing base (
e44d44c) to head (18b5ff4).
Additional details and impacted files
@@ Coverage Diff @@
## feature/sqs-instrumentation #2602 +/- ##
============================================================
Coverage 80.86% 80.86%
============================================================
Files 459 459
Lines 29046 29059 +13
Branches 3188 3190 +2
============================================================
+ Hits 23488 23499 +11
- Misses 4771 4773 +2
Partials 787 787
| Flag | Coverage Δ | |
|---|---|---|
| Agent | 81.78% <100.00%> (+<0.01%) |
:arrow_up: |
| Profiler | 72.59% <ø> (ø) |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Files | Coverage Δ | |
|---|---|---|
| src/Agent/NewRelic/Agent/Core/Agent.cs | 74.30% <100.00%> (+0.96%) |
:arrow_up: |
| ...ions/NewRelic.Agent.Extensions/AwsSdk/SqsHelper.cs | 62.29% <100.00%> (ø) |