newrelic-dotnet-agent icon indicating copy to clipboard operation
newrelic-dotnet-agent copied to clipboard

SQS: Rework distributed trace tests

Open tippmar-nr opened this issue 1 year ago • 1 comments

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.

tippmar-nr avatar Jul 09 '24 21:07 tippmar-nr

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%> (ø)

... and 2 files with indirect coverage changes

codecov-commenter avatar Jul 11 '24 14:07 codecov-commenter