Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI Visibility] Fix code coverage enabled tag behavior #6111

Merged

Conversation

tonyredondo
Copy link
Member

Summary of changes

This PR fixes the current behavior of the test.code_coverage.enabled tag to only set it to true when Intelligent Test Runner is enabled and collecting coverage data per test

Reason for change

.NET implementation was setting this value also on global code coverage reporting, being different to other tracers implementations

Implementation details

Remove the set tag when reporting the global code coverage from third party libraries.

Test coverage

Updated the code coverage reporting test to check we don't set the tag anymore.

Other details

@tonyredondo tonyredondo self-assigned this Oct 3, 2024
@tonyredondo tonyredondo requested review from a team as code owners October 3, 2024 08:23
@andrewlock
Copy link
Member

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing the following branches/commits:

Execution-time benchmarks measure the whole time it takes to execute a program. And are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are shown in red. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.6.2) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6111) - mean (71ms)  : 68, 73
     .   : milestone, 71,
    master - mean (70ms)  : 68, 72
     .   : milestone, 70,

    section CallTarget+Inlining+NGEN
    This PR (6111) - mean (1,105ms)  : 1083, 1126
     .   : milestone, 1105,
    master - mean (1,105ms)  : 1087, 1123
     .   : milestone, 1105,

Loading
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6111) - mean (109ms)  : 106, 112
     .   : milestone, 109,
    master - mean (109ms)  : 106, 112
     .   : milestone, 109,

    section CallTarget+Inlining+NGEN
    This PR (6111) - mean (774ms)  : 757, 792
     .   : milestone, 774,
    master - mean (772ms)  : 756, 787
     .   : milestone, 772,

Loading
gantt
    title Execution time (ms) FakeDbCommand (.NET 6) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6111) - mean (93ms)  : 90, 95
     .   : milestone, 93,
    master - mean (93ms)  : 90, 96
     .   : milestone, 93,

    section CallTarget+Inlining+NGEN
    This PR (6111) - mean (730ms)  : 710, 750
     .   : milestone, 730,
    master - mean (727ms)  : 709, 744
     .   : milestone, 727,

Loading
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.6.2) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6111) - mean (190ms)  : 187, 193
     .   : milestone, 190,
    master - mean (191ms)  : 187, 194
     .   : milestone, 191,

    section CallTarget+Inlining+NGEN
    This PR (6111) - mean (1,194ms)  : 1169, 1218
     .   : milestone, 1194,
    master - mean (1,194ms)  : 1165, 1223
     .   : milestone, 1194,

Loading
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6111) - mean (275ms)  : 271, 280
     .   : milestone, 275,
    master - mean (276ms)  : 271, 280
     .   : milestone, 276,

    section CallTarget+Inlining+NGEN
    This PR (6111) - mean (942ms)  : 925, 958
     .   : milestone, 942,
    master - mean (936ms)  : 920, 952
     .   : milestone, 936,

Loading
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6) 
    dateFormat  X
    axisFormat %s
    todayMarker off
    section Baseline
    This PR (6111) - mean (265ms)  : 262, 268
     .   : milestone, 265,
    master - mean (265ms)  : 261, 269
     .   : milestone, 265,

    section CallTarget+Inlining+NGEN
    This PR (6111) - mean (925ms)  : 910, 940
     .   : milestone, 925,
    master - mean (923ms)  : 906, 940
     .   : milestone, 923,

Loading

@andrewlock
Copy link
Member

Benchmarks Report for tracer 🐌

Benchmarks for #6111 compared to master:

  • 3 benchmarks are faster, with geometric mean 1.184
  • All benchmarks have the same allocations

The following thresholds were used for comparing the benchmark speeds:

  • Mann–Whitney U test with statistical test for significance of 5%
  • Only results indicating a difference greater than 10% and 0.3 ns are considered.

Allocation changes below 0.5% are ignored.

Benchmark details

Benchmarks.Trace.ActivityBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master StartStopWithChild net6.0 7.76μs 43.9ns 326ns 0.0184 0.00737 0 5.42 KB
master StartStopWithChild netcoreapp3.1 9.84μs 54.7ns 337ns 0.0193 0.00967 0 5.62 KB
master StartStopWithChild net472 16.1μs 46.3ns 179ns 1.01 0.301 0.0871 6.06 KB
#6111 StartStopWithChild net6.0 7.66μs 43.3ns 290ns 0.0117 0.00392 0 5.43 KB
#6111 StartStopWithChild netcoreapp3.1 9.91μs 56ns 384ns 0.024 0.00959 0 5.61 KB
#6111 StartStopWithChild net472 15.9μs 41ns 159ns 1.01 0.295 0.0878 6.07 KB
Benchmarks.Trace.AgentWriterBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master WriteAndFlushEnrichedTraces net6.0 467μs 285ns 1.1μs 0 0 0 2.7 KB
master WriteAndFlushEnrichedTraces netcoreapp3.1 667μs 1.46μs 5.65μs 0 0 0 2.7 KB
master WriteAndFlushEnrichedTraces net472 834μs 502ns 1.95μs 0.417 0 0 3.3 KB
#6111 WriteAndFlushEnrichedTraces net6.0 502μs 282ns 1.09μs 0 0 0 2.7 KB
#6111 WriteAndFlushEnrichedTraces netcoreapp3.1 640μs 350ns 1.36μs 0 0 0 2.7 KB
#6111 WriteAndFlushEnrichedTraces net472 841μs 374ns 1.4μs 0.419 0 0 3.3 KB
Benchmarks.Trace.AspNetCoreBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master SendRequest net6.0 195μs 1.09μs 6.81μs 0.182 0 0 18.45 KB
master SendRequest netcoreapp3.1 220μs 1.26μs 10μs 0.212 0 0 20.61 KB
master SendRequest net472 0.000327ns 0.000154ns 0.000577ns 0 0 0 0 b
#6111 SendRequest net6.0 194μs 1.08μs 8.21μs 0.186 0 0 18.45 KB
#6111 SendRequest netcoreapp3.1 214μs 994ns 4.1μs 0.2 0 0 20.61 KB
#6111 SendRequest net472 0.00186ns 0.000978ns 0.00379ns 0 0 0 0 b
Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master WriteAndFlushEnrichedTraces net6.0 569μs 1.73μs 6.48μs 0.563 0 0 41.54 KB
master WriteAndFlushEnrichedTraces netcoreapp3.1 675μs 3.36μs 14.7μs 0.336 0 0 41.73 KB
master WriteAndFlushEnrichedTraces net472 850μs 3.13μs 11.7μs 8.45 2.53 0.422 53.34 KB
#6111 WriteAndFlushEnrichedTraces net6.0 563μs 2.77μs 12.1μs 0.571 0 0 41.56 KB
#6111 WriteAndFlushEnrichedTraces netcoreapp3.1 684μs 3.38μs 14.7μs 0.326 0 0 41.81 KB
#6111 WriteAndFlushEnrichedTraces net472 851μs 4.09μs 16.9μs 8.5 2.55 0.425 53.34 KB
Benchmarks.Trace.DbCommandBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master ExecuteNonQuery net6.0 1.29μs 1.28ns 4.97ns 0.0147 0 0 1.02 KB
master ExecuteNonQuery netcoreapp3.1 1.77μs 1.1ns 4.27ns 0.0133 0 0 1.02 KB
master ExecuteNonQuery net472 2.12μs 1.02ns 3.83ns 0.156 0 0 987 B
#6111 ExecuteNonQuery net6.0 1.26μs 0.75ns 2.81ns 0.0146 0 0 1.02 KB
#6111 ExecuteNonQuery netcoreapp3.1 1.75μs 0.69ns 2.58ns 0.0132 0 0 1.02 KB
#6111 ExecuteNonQuery net472 2.06μs 2.61ns 9.75ns 0.156 0 0 987 B
Benchmarks.Trace.ElasticsearchBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master CallElasticsearch net6.0 1.23μs 1.63ns 6.31ns 0.0136 0 0 976 B
master CallElasticsearch netcoreapp3.1 1.57μs 1.08ns 4.04ns 0.0129 0 0 976 B
master CallElasticsearch net472 2.48μs 2.32ns 9ns 0.158 0 0 995 B
master CallElasticsearchAsync net6.0 1.33μs 0.873ns 3.27ns 0.0134 0 0 952 B
master CallElasticsearchAsync netcoreapp3.1 1.68μs 0.502ns 1.94ns 0.0143 0 0 1.02 KB
master CallElasticsearchAsync net472 2.58μs 1.68ns 6.5ns 0.167 0 0 1.05 KB
#6111 CallElasticsearch net6.0 1.18μs 0.495ns 1.78ns 0.0136 0 0 976 B
#6111 CallElasticsearch netcoreapp3.1 1.61μs 1.41ns 5.47ns 0.0129 0 0 976 B
#6111 CallElasticsearch net472 2.5μs 1.69ns 6.34ns 0.157 0 0 995 B
#6111 CallElasticsearchAsync net6.0 1.25μs 0.804ns 3.11ns 0.0132 0 0 952 B
#6111 CallElasticsearchAsync netcoreapp3.1 1.65μs 0.475ns 1.78ns 0.0136 0 0 1.02 KB
#6111 CallElasticsearchAsync net472 2.63μs 1.85ns 7.18ns 0.167 0 0 1.05 KB
Benchmarks.Trace.GraphQLBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master ExecuteAsync net6.0 1.26μs 1.68ns 6.27ns 0.0132 0 0 952 B
master ExecuteAsync netcoreapp3.1 1.57μs 0.865ns 3.24ns 0.0125 0 0 952 B
master ExecuteAsync net472 1.75μs 2.98ns 11.5ns 0.145 0 0 915 B
#6111 ExecuteAsync net6.0 1.39μs 1.32ns 4.92ns 0.0132 0 0 952 B
#6111 ExecuteAsync netcoreapp3.1 1.72μs 1.3ns 4.86ns 0.0129 0 0 952 B
#6111 ExecuteAsync net472 1.69μs 0.423ns 1.58ns 0.145 0 0 915 B
Benchmarks.Trace.HttpClientBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master SendAsync net6.0 4.33μs 3.79ns 14.2ns 0.0301 0 0 2.22 KB
master SendAsync netcoreapp3.1 5.18μs 2.22ns 8.58ns 0.0362 0 0 2.76 KB
master SendAsync net472 7.75μs 1.93ns 7.21ns 0.499 0 0 3.15 KB
#6111 SendAsync net6.0 4.1μs 1.47ns 5.5ns 0.0309 0 0 2.22 KB
#6111 SendAsync netcoreapp3.1 5.13μs 1.59ns 5.94ns 0.0384 0 0 2.76 KB
#6111 SendAsync net472 7.82μs 1.57ns 6.07ns 0.496 0 0 3.15 KB
Benchmarks.Trace.ILoggerBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master EnrichedLog net6.0 1.53μs 1.05ns 3.92ns 0.0231 0 0 1.64 KB
master EnrichedLog netcoreapp3.1 2.41μs 1.34ns 5ns 0.0216 0 0 1.64 KB
master EnrichedLog net472 2.52μs 0.684ns 2.56ns 0.249 0 0 1.57 KB
#6111 EnrichedLog net6.0 1.42μs 0.6ns 2.25ns 0.0228 0 0 1.64 KB
#6111 EnrichedLog netcoreapp3.1 2.25μs 0.98ns 3.67ns 0.0224 0 0 1.64 KB
#6111 EnrichedLog net472 2.62μs 1.44ns 5.59ns 0.249 0 0 1.57 KB
Benchmarks.Trace.Log4netBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master EnrichedLog net6.0 115μs 108ns 373ns 0.0576 0 0 4.28 KB
master EnrichedLog netcoreapp3.1 118μs 176ns 683ns 0.0582 0 0 4.28 KB
master EnrichedLog net472 145μs 62.5ns 234ns 0.653 0.218 0 4.46 KB
#6111 EnrichedLog net6.0 113μs 115ns 445ns 0.0566 0 0 4.28 KB
#6111 EnrichedLog netcoreapp3.1 119μs 94ns 352ns 0 0 0 4.28 KB
#6111 EnrichedLog net472 146μs 77.7ns 280ns 0.659 0.22 0 4.46 KB
Benchmarks.Trace.NLogBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master EnrichedLog net6.0 3.08μs 1.46ns 5.65ns 0.0308 0 0 2.2 KB
master EnrichedLog netcoreapp3.1 4.14μs 4.75ns 18.4ns 0.0288 0 0 2.2 KB
master EnrichedLog net472 4.91μs 1.83ns 7.07ns 0.319 0 0 2.02 KB
#6111 EnrichedLog net6.0 3.03μs 1.57ns 5.88ns 0.0305 0 0 2.2 KB
#6111 EnrichedLog netcoreapp3.1 4.13μs 6.45ns 25ns 0.0288 0 0 2.2 KB
#6111 EnrichedLog net472 4.86μs 1.57ns 6.08ns 0.32 0 0 2.02 KB
Benchmarks.Trace.RedisBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master SendReceive net6.0 1.35μs 0.561ns 2.1ns 0.0162 0 0 1.14 KB
master SendReceive netcoreapp3.1 1.8μs 0.848ns 3.28ns 0.0153 0 0 1.14 KB
master SendReceive net472 2.09μs 0.804ns 3.11ns 0.184 0 0 1.16 KB
#6111 SendReceive net6.0 1.38μs 0.459ns 1.72ns 0.0158 0 0 1.14 KB
#6111 SendReceive netcoreapp3.1 1.76μs 3.45ns 13.4ns 0.0156 0 0 1.14 KB
#6111 SendReceive net472 2.12μs 1.19ns 4.6ns 0.183 0.00107 0 1.16 KB
Benchmarks.Trace.SerilogBenchmark - Same speed ✔️ Same allocations ✔️

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master EnrichedLog net6.0 2.74μs 6.02ns 23.3ns 0.023 0 0 1.6 KB
master EnrichedLog netcoreapp3.1 3.9μs 1.97ns 7.62ns 0.0216 0 0 1.65 KB
master EnrichedLog net472 4.33μs 2.04ns 7.63ns 0.324 0 0 2.04 KB
#6111 EnrichedLog net6.0 2.79μs 0.642ns 2.32ns 0.0223 0 0 1.6 KB
#6111 EnrichedLog netcoreapp3.1 3.84μs 0.986ns 3.82ns 0.021 0 0 1.65 KB
#6111 EnrichedLog net472 4.32μs 2.97ns 11.5ns 0.323 0 0 2.04 KB
Benchmarks.Trace.SpanBenchmark - Faster 🎉 Same allocations ✔️

Faster 🎉 in #6111

Benchmark base/diff Base Median (ns) Diff Median (ns) Modality
Benchmarks.Trace.SpanBenchmark.StartFinishSpan‑net6.0 1.169 476.39 407.37
Benchmarks.Trace.SpanBenchmark.StartFinishScope‑net6.0 1.117 535.01 478.79

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master StartFinishSpan net6.0 476ns 0.0983ns 0.368ns 0.00818 0 0 576 B
master StartFinishSpan netcoreapp3.1 548ns 0.31ns 1.2ns 0.00797 0 0 576 B
master StartFinishSpan net472 674ns 0.186ns 0.719ns 0.0917 0 0 578 B
master StartFinishScope net6.0 535ns 0.266ns 1.03ns 0.00968 0 0 696 B
master StartFinishScope netcoreapp3.1 662ns 0.312ns 1.12ns 0.00956 0 0 696 B
master StartFinishScope net472 841ns 0.229ns 0.887ns 0.104 0 0 658 B
#6111 StartFinishSpan net6.0 407ns 0.198ns 0.768ns 0.00817 0 0 576 B
#6111 StartFinishSpan netcoreapp3.1 577ns 1.2ns 4.64ns 0.00793 0 0 576 B
#6111 StartFinishSpan net472 634ns 0.561ns 2.17ns 0.0918 0 0 578 B
#6111 StartFinishScope net6.0 479ns 0.226ns 0.877ns 0.00963 0 0 696 B
#6111 StartFinishScope netcoreapp3.1 706ns 0.427ns 1.66ns 0.00932 0 0 696 B
#6111 StartFinishScope net472 840ns 0.591ns 2.29ns 0.104 0 0 658 B
Benchmarks.Trace.TraceAnnotationsBenchmark - Faster 🎉 Same allocations ✔️

Faster 🎉 in #6111

Benchmark base/diff Base Median (ns) Diff Median (ns) Modality
Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin‑net6.0 1.271 762.63 600.17

Raw results

Branch Method Toolchain Mean StdError StdDev Gen 0 Gen 1 Gen 2 Allocated
master RunOnMethodBegin net6.0 763ns 0.409ns 1.59ns 0.00955 0 0 696 B
master RunOnMethodBegin netcoreapp3.1 997ns 0.462ns 1.79ns 0.00947 0 0 696 B
master RunOnMethodBegin net472 1.12μs 0.63ns 2.44ns 0.104 0 0 658 B
#6111 RunOnMethodBegin net6.0 600ns 0.346ns 1.34ns 0.00963 0 0 696 B
#6111 RunOnMethodBegin netcoreapp3.1 988ns 0.402ns 1.56ns 0.00963 0 0 696 B
#6111 RunOnMethodBegin net472 1.17μs 0.662ns 2.56ns 0.104 0 0 658 B

@datadog-ddstaging
Copy link

datadog-ddstaging bot commented Oct 3, 2024

Datadog Report

Branch report: tony/civisibility-fix-codecoverage-enabled-behavior
Commit report: afd5c6b
Test service: dd-trace-dotnet

✅ 0 Failed, 366739 Passed, 2056 Skipped, 15h 53m 32.65s Total Time
❄️ 1 New Flaky

New Flaky Tests (1)

  • IpcClientTest - Datadog.Trace.Tests.Ci.Ipc.IpcTests - Last Failure

    Expand for error
     Expected finalValue.ClientValue to be 20, but found 19 (difference of -1).
    

@andrewlock
Copy link
Member

Throughput/Crank Report ⚡

Throughput results for AspNetCoreSimpleController comparing the following branches/commits:

Cases where throughput results for the PR are worse than latest master (5% drop or greater), results are shown in red.

Note that these results are based on a single point-in-time result for each branch. For full results, see one of the many, many dashboards!

gantt
    title Throughput Linux x64 (Total requests) 
    dateFormat  X
    axisFormat %s
    section Baseline
    This PR (6111) (10.997M)   : 0, 10996540
    master (10.898M)   : 0, 10898452
    benchmarks/2.9.0 (11.081M)   : 0, 11080577

    section Automatic
    This PR (6111) (7.196M)   : 0, 7195698
    master (7.236M)   : 0, 7236170
    benchmarks/2.9.0 (7.732M)   : 0, 7732233

    section Trace stats
    master (7.546M)   : 0, 7545828

    section Manual
    master (10.952M)   : 0, 10952297

    section Manual + Automatic
    This PR (6111) (6.805M)   : 0, 6804855
    master (6.660M)   : 0, 6659549

    section DD_TRACE_ENABLED=0
    master (9.891M)   : 0, 9891026

Loading
gantt
    title Throughput Linux arm64 (Total requests) 
    dateFormat  X
    axisFormat %s
    section Baseline
    This PR (6111) (9.391M)   : 0, 9390698
    master (9.362M)   : 0, 9362410
    benchmarks/2.9.0 (9.798M)   : 0, 9798067

    section Automatic
    This PR (6111) (6.592M)   : 0, 6592041
    master (6.598M)   : 0, 6597548

    section Trace stats
    master (6.871M)   : 0, 6871246

    section Manual
    master (9.366M)   : 0, 9366333

    section Manual + Automatic
    This PR (6111) (6.176M)   : 0, 6176179
    master (6.137M)   : 0, 6136716

    section DD_TRACE_ENABLED=0
    master (8.947M)   : 0, 8947125

Loading
gantt
    title Throughput Windows x64 (Total requests) 
    dateFormat  X
    axisFormat %s
    section Baseline
    This PR (6111) (10.093M)   : 0, 10093491
    master (10.073M)   : 0, 10073298
    benchmarks/2.9.0 (10.067M)   : 0, 10067315

    section Automatic
    This PR (6111) (6.866M)   : 0, 6865660
    master (6.830M)   : 0, 6829594
    benchmarks/2.9.0 (7.552M)   : 0, 7552193

    section Trace stats
    master (7.461M)   : 0, 7460530

    section Manual
    master (9.962M)   : 0, 9962060

    section Manual + Automatic
    This PR (6111) (6.223M)   : 0, 6223152
    master (6.378M)   : 0, 6377879

    section DD_TRACE_ENABLED=0
    master (9.452M)   : 0, 9452401

Loading

@tonyredondo tonyredondo merged commit baf9015 into master Oct 3, 2024
76 checks passed
@tonyredondo tonyredondo deleted the tony/civisibility-fix-codecoverage-enabled-behavior branch October 3, 2024 12:40
@github-actions github-actions bot added this to the vNext-v3 milestone Oct 3, 2024
agocs pushed a commit that referenced this pull request Oct 8, 2024
## Summary of changes

This PR fixes the current behavior of the `test.code_coverage.enabled`
tag to only set it to true when Intelligent Test Runner is enabled and
collecting coverage data per test

## Reason for change

.NET implementation was setting this value also on global code coverage
reporting, being different to other tracers implementations

## Implementation details

Remove the set tag when reporting the global code coverage from third
party libraries.

## Test coverage

Updated the code coverage reporting test to check we don't set the tag
anymore.

## Other details
<!-- Fixes #{issue} -->

<!-- ⚠️ Note: where possible, please obtain 2 approvals prior to
merging. Unless CODEOWNERS specifies otherwise, for external teams it is
typically best to have one review from a team member, and one review
from apm-dotnet. Trivial changes do not require 2 reviews. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants