Skip to content

fix user & host parsing in SQL connection string#8431

Merged
vandonr merged 7 commits into
masterfrom
vandonr/fix2
Apr 16, 2026
Merged

fix user & host parsing in SQL connection string#8431
vandonr merged 7 commits into
masterfrom
vandonr/fix2

Conversation

@vandonr

@vandonr vandonr commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

a bunch of possible spellings were not included in the keys we look for when filling db.user including some we use in the integration tests connection strings, so I also edited the span metadata rules
Same for the host, but we didn't use those keys in tests

Reason for change

Implementation details

Test coverage

Other details

@vandonr
vandonr requested a review from a team as a code owner April 9, 2026 09:47

@andrewlock andrewlock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks - just a question about where the spec for these lives, so we can be sure that we're not missing anything else?

return new TagsCacheItem(
dbName: GetConnectionStringValue(builder, "Database", "Initial Catalog", "InitialCatalog"),
dbUser: GetConnectionStringValue(builder, "User ID", "UserID"),
dbUser: GetConnectionStringValue(builder, "User ID", "UserID", "User", "Uid", "Username", "User Name"),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a spec for this, so we can be sure we're not missing anything anywhere else?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no spec, I asked the AI to make really sure nothing else was missing and it said we're all good, so it's 100% sure

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no spec

:eyetwitch: :stare:

This feels like something that really should have a cross-tracer spec and cross tracer tests right, seeing as it's database specific, not language specific?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I edited the description for db.user in the confluence page, good enough as a spec
(thanks andrew for the pointer)

Comment thread tracer/test/Datadog.Trace.TestHelpers/SpanMetadataV1Rules.cs
@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Apr 9, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8431) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration70.89 ± (70.89 - 71.19) ms71.31 ± (71.46 - 71.92) ms+0.6%✅⬆️
.NET Framework 4.8 - Bailout
duration75.97 ± (75.83 - 76.24) ms75.09 ± (75.13 - 75.47) ms-1.1%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1057.73 ± (1058.79 - 1064.77) ms1059.03 ± (1060.12 - 1065.18) ms+0.1%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.30 ± (22.26 - 22.33) ms22.44 ± (22.40 - 22.49) ms+0.7%✅⬆️
process.time_to_main_ms83.51 ± (83.30 - 83.71) ms83.93 ± (83.74 - 84.12) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.92 - 10.93) MB10.92 ± (10.91 - 10.92) MB-0.0%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.33 ± (22.29 - 22.37) ms22.20 ± (22.17 - 22.23) ms-0.6%
process.time_to_main_ms85.37 ± (85.15 - 85.59) ms84.15 ± (83.94 - 84.36) ms-1.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.95 ± (10.94 - 10.95) MB10.95 ± (10.94 - 10.95) MB-0.0%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms228.23 ± (226.93 - 229.53) ms225.83 ± (224.83 - 226.82) ms-1.1%
process.time_to_main_ms520.02 ± (518.74 - 521.29) ms520.40 ± (519.37 - 521.42) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.47 ± (48.43 - 48.50) MB48.47 ± (48.44 - 48.50) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%
.NET 6 - Baseline
process.internal_duration_ms21.00 ± (20.96 - 21.03) ms21.06 ± (21.03 - 21.09) ms+0.3%✅⬆️
process.time_to_main_ms72.47 ± (72.32 - 72.62) ms72.64 ± (72.48 - 72.80) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.59 ± (10.59 - 10.60) MB10.63 ± (10.63 - 10.63) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.88 ± (20.85 - 20.92) ms21.02 ± (20.99 - 21.05) ms+0.7%✅⬆️
process.time_to_main_ms73.03 ± (72.86 - 73.20) ms73.86 ± (73.71 - 74.01) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.71 ± (10.70 - 10.71) MB10.74 ± (10.74 - 10.75) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms382.96 ± (380.32 - 385.60) ms383.06 ± (381.33 - 384.80) ms+0.0%✅⬆️
process.time_to_main_ms519.27 ± (518.28 - 520.26) ms518.18 ± (517.16 - 519.21) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.02 ± (49.99 - 50.04) MB49.88 ± (49.85 - 49.90) MB-0.3%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.30 ± (19.25 - 19.34) ms19.28 ± (19.25 - 19.32) ms-0.1%
process.time_to_main_ms71.33 ± (71.13 - 71.53) ms71.20 ± (71.06 - 71.33) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.67 - 7.68) MB7.67 ± (7.67 - 7.68) MB+0.0%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.28 ± (19.25 - 19.31) ms19.25 ± (19.22 - 19.28) ms-0.2%
process.time_to_main_ms72.59 ± (72.42 - 72.76) ms72.51 ± (72.38 - 72.63) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.72) MB7.74 ± (7.73 - 7.74) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms308.38 ± (305.68 - 311.07) ms305.35 ± (303.08 - 307.61) ms-1.0%
process.time_to_main_ms480.19 ± (479.41 - 480.98) ms481.09 ± (480.35 - 481.84) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.09 ± (37.07 - 37.11) MB37.10 ± (37.08 - 37.12) MB+0.0%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.0%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration205.88 ± (205.69 - 206.64) ms210.76 ± (210.58 - 211.55) ms+2.4%✅⬆️
.NET Framework 4.8 - Bailout
duration209.45 ± (209.20 - 209.82) ms214.44 ± (214.29 - 215.17) ms+2.4%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1205.92 ± (1204.43 - 1210.16) ms1235.19 ± (1234.70 - 1242.29) ms+2.4%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms200.48 ± (200.06 - 200.89) ms205.96 ± (205.50 - 206.43) ms+2.7%✅⬆️
process.time_to_main_ms87.38 ± (87.10 - 87.65) ms90.34 ± (90.08 - 90.59) ms+3.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.04 ± (16.02 - 16.06) MB15.86 ± (15.84 - 15.88) MB-1.1%
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)+1.5%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms201.23 ± (200.81 - 201.65) ms205.12 ± (204.68 - 205.55) ms+1.9%✅⬆️
process.time_to_main_ms89.20 ± (88.98 - 89.41) ms91.57 ± (91.29 - 91.85) ms+2.7%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.96 ± (15.93 - 15.98) MB15.92 ± (15.90 - 15.94) MB-0.2%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+1.4%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms414.12 ± (413.03 - 415.20) ms422.70 ± (421.43 - 423.96) ms+2.1%✅⬆️
process.time_to_main_ms544.49 ± (542.86 - 546.12) ms554.16 ± (553.01 - 555.31) ms+1.8%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed59.36 ± (59.32 - 59.40) MB59.21 ± (59.16 - 59.26) MB-0.3%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.1%
.NET 6 - Baseline
process.internal_duration_ms206.31 ± (205.93 - 206.69) ms210.62 ± (210.20 - 211.05) ms+2.1%✅⬆️
process.time_to_main_ms76.22 ± (75.96 - 76.48) ms78.74 ± (78.47 - 79.01) ms+3.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.23 ± (16.20 - 16.25) MB16.11 ± (16.09 - 16.13) MB-0.7%
runtime.dotnet.threads.count19 ± (19 - 20)19 ± (19 - 19)-0.6%
.NET 6 - Bailout
process.internal_duration_ms206.20 ± (205.87 - 206.54) ms211.80 ± (211.34 - 212.26) ms+2.7%✅⬆️
process.time_to_main_ms77.72 ± (77.48 - 77.96) ms80.38 ± (80.09 - 80.67) ms+3.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.24 ± (16.21 - 16.26) MB16.20 ± (16.17 - 16.22) MB-0.2%
runtime.dotnet.threads.count20 ± (20 - 20)21 ± (20 - 21)+1.3%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms595.92 ± (593.29 - 598.54) ms592.45 ± (589.66 - 595.25) ms-0.6%
process.time_to_main_ms539.98 ± (538.87 - 541.09) ms551.31 ± (549.71 - 552.91) ms+2.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.52 ± (61.41 - 61.63) MB61.19 ± (61.01 - 61.37) MB-0.5%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms203.23 ± (202.75 - 203.70) ms210.31 ± (209.88 - 210.73) ms+3.5%✅⬆️
process.time_to_main_ms75.43 ± (75.17 - 75.69) ms78.19 ± (77.96 - 78.43) ms+3.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.62 ± (11.60 - 11.64) MB11.58 ± (11.56 - 11.60) MB-0.4%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.7%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms203.09 ± (202.69 - 203.49) ms209.58 ± (209.21 - 209.95) ms+3.2%✅⬆️
process.time_to_main_ms76.37 ± (76.13 - 76.60) ms79.03 ± (78.85 - 79.22) ms+3.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.68 ± (11.66 - 11.70) MB11.64 ± (11.63 - 11.66) MB-0.3%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+1.6%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms525.68 ± (520.62 - 530.73) ms537.29 ± (531.08 - 543.49) ms+2.2%✅⬆️
process.time_to_main_ms501.21 ± (500.34 - 502.09) ms513.94 ± (513.03 - 514.85) ms+2.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.70 ± (50.64 - 50.75) MB50.77 ± (50.69 - 50.85) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.4%✅⬆️
Comparison explanation

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 highlighted 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).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8431) - mean (72ms)  : 68, 75
    master - mean (71ms)  : 69, 73

    section Bailout
    This PR (8431) - mean (75ms)  : 73, 77
    master - mean (76ms)  : 73, 79

    section CallTarget+Inlining+NGEN
    This PR (8431) - mean (1,063ms)  : 1027, 1099
    master - mean (1,062ms)  : 1019, 1105

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8431) - mean (113ms)  : 110, 116
    master - mean (112ms)  : 109, 116

    section Bailout
    This PR (8431) - mean (113ms)  : 110, 116
    master - mean (114ms)  : 112, 117

    section CallTarget+Inlining+NGEN
    This PR (8431) - mean (783ms)  : 760, 805
    master - mean (784ms)  : 761, 807

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8431) - mean (100ms)  : 97, 103
    master - mean (100ms)  : 96, 103

    section Bailout
    This PR (8431) - mean (101ms)  : 98, 104
    master - mean (100ms)  : 97, 102

    section CallTarget+Inlining+NGEN
    This PR (8431) - mean (930ms)  : 902, 959
    master - mean (930ms)  : 890, 971

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8431) - mean (98ms)  : 95, 101
    master - mean (98ms)  : 94, 102

    section Bailout
    This PR (8431) - mean (99ms)  : 97, 101
    master - mean (99ms)  : 96, 103

    section CallTarget+Inlining+NGEN
    This PR (8431) - mean (816ms)  : 776, 857
    master - mean (819ms)  : 780, 859

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8431) - mean (211ms)  : 206, 216
    master - mean (206ms)  : 201, 211

    section Bailout
    This PR (8431) - mean (215ms)  : 211, 219
    master - mean (210ms)  : 206, 213

    section CallTarget+Inlining+NGEN
    This PR (8431) - mean (1,238ms)  : 1181, 1296
    master - mean (1,207ms)  : 1169, 1246

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8431) - mean (305ms)  : 298, 312
    master - mean (297ms)  : 289, 305

    section Bailout
    This PR (8431) - mean (306ms)  : 300, 311
    master - mean (299ms)  : 293, 306

    section CallTarget+Inlining+NGEN
    This PR (8431) - mean (1,016ms)  : 984, 1047
    master - mean (1,002ms)  : 964, 1040

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8431) - mean (299ms)  : 293, 305
    master - mean (292ms)  : 286, 297

    section Bailout
    This PR (8431) - mean (301ms)  : 294, 309
    master - mean (293ms)  : 288, 297

    section CallTarget+Inlining+NGEN
    This PR (8431) - mean (1,176ms)  : 1143, 1209
    master - mean (1,167ms)  : 1124, 1210

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8431) - mean (299ms)  : 291, 308
    master - mean (289ms)  : 283, 296

    section Bailout
    This PR (8431) - mean (299ms)  : 293, 305
    master - mean (290ms)  : 284, 296

    section CallTarget+Inlining+NGEN
    This PR (8431) - mean (1,088ms)  : 985, 1191
    master - mean (1,067ms)  : 971, 1162

Loading

@pr-commenter

pr-commenter Bot commented Apr 9, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-04-15 15:17:42

Comparing candidate commit adf6625 in PR branch vandonr/fix2 with baseline commit 55ada2a in branch master.

Found 29 performance improvements and 36 performance regressions! Performance is the same for 214 metrics, 9 unstable metrics.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0

  • 🟩 throughput [+7395.115op/s; +9712.625op/s] or [+6.216%; +8.164%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+310.926ms; +312.649ms] or [+154.292%; +155.147%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟥 execution_time [+382.671ms; +385.008ms] or [+302.334%; +304.180%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 execution_time [+398.722ms; +400.781ms] or [+352.854%; +354.676%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net6.0

  • 🟩 execution_time [-16.308ms; -12.137ms] or [-7.616%; -5.669%]
  • 🟩 throughput [+8055.602op/s; +10847.241op/s] or [+5.880%; +7.918%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody netcoreapp3.1

  • 🟩 throughput [+7280.338op/s; +9568.410op/s] or [+6.582%; +8.651%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net6.0

  • 🟩 execution_time [-26.043ms; -21.180ms] or [-11.614%; -9.445%]
  • 🟩 throughput [+82249.305op/s; +105026.986op/s] or [+8.787%; +11.220%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody netcoreapp3.1

  • 🟩 throughput [+99893.521op/s; +115825.265op/s] or [+14.353%; +16.642%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net6.0

  • 🟩 throughput [+10623.349op/s; +13551.005op/s] or [+6.759%; +8.622%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody netcoreapp3.1

  • 🟩 throughput [+8462.435op/s; +11107.693op/s] or [+6.741%; +8.849%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net6.0

  • 🟩 throughput [+351956.104op/s; +374865.387op/s] or [+11.736%; +12.500%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody netcoreapp3.1

  • 🟩 execution_time [-18.578ms; -14.198ms] or [-8.564%; -6.545%]
  • 🟩 throughput [+219165.435op/s; +273659.732op/s] or [+8.699%; +10.862%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net472

  • 🟥 execution_time [+300.272ms; +300.977ms] or [+150.036%; +150.388%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net6.0

  • 🟥 execution_time [+299.575ms; +302.777ms] or [+151.077%; +152.691%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs netcoreapp3.1

  • 🟥 execution_time [+299.968ms; +302.399ms] or [+151.101%; +152.325%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net472

  • 🟥 execution_time [+298.557ms; +299.457ms] or [+146.639%; +147.081%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net6.0

  • 🟥 execution_time [+294.065ms; +296.429ms] or [+143.758%; +144.913%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs netcoreapp3.1

  • 🟥 execution_time [+302.994ms; +305.367ms] or [+151.436%; +152.622%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net6.0

  • 🟥 execution_time [+19.939µs; +43.516µs] or [+6.365%; +13.893%]
  • 🟥 throughput [-407.798op/s; -209.370op/s] or [-12.712%; -6.527%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.652ms; +300.285ms] or [+149.557%; +149.873%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net6.0

  • 🟩 throughput [+1159.329op/s; +1315.063op/s] or [+9.526%; +10.806%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest netcoreapp3.1

  • 🟩 throughput [+655.734op/s; +856.652op/s] or [+6.348%; +8.293%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 throughput [-547.979op/s; -478.346op/s] or [-49.652%; -43.343%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • 🟥 throughput [-739.174op/s; -655.756op/s] or [-49.303%; -43.739%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • 🟥 execution_time [+337.397ms; +346.079ms] or [+201.802%; +206.996%]
  • 🟥 throughput [-405.877op/s; -370.191op/s] or [-28.261%; -25.776%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net6.0

  • 🟩 throughput [+26.373op/s; +39.710op/s] or [+5.206%; +7.839%]

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟥 throughput [-20860.470op/s; -17771.758op/s] or [-5.875%; -5.005%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+302.456ms; +304.397ms] or [+152.311%; +153.288%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net6.0

  • 🟥 execution_time [+301.415ms; +303.531ms] or [+151.039%; +152.100%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch netcoreapp3.1

  • 🟥 execution_time [+301.318ms; +304.641ms] or [+151.369%; +153.039%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+301.681ms; +303.322ms] or [+151.494%; +152.318%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net6.0

  • 🟥 execution_time [+297.501ms; +299.512ms] or [+147.101%; +148.095%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync netcoreapp3.1

  • 🟥 execution_time [+303.061ms; +306.486ms] or [+153.605%; +155.340%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+301.660ms; +303.417ms] or [+151.406%; +152.288%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net6.0

  • 🟥 execution_time [+300.547ms; +303.068ms] or [+149.795%; +151.052%]
  • 🟩 throughput [+45536.860op/s; +51693.201op/s] or [+9.042%; +10.265%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync netcoreapp3.1

  • 🟥 execution_time [+300.030ms; +307.115ms] or [+149.262%; +152.787%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0

  • 🟩 execution_time [-16.188ms; -12.541ms] or [-7.527%; -5.832%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net6.0

  • 🟩 allocated_mem [-25.368KB; -25.348KB] or [-9.254%; -9.246%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark netcoreapp3.1

  • 🟩 allocated_mem [-15.052KB; -15.036KB] or [-5.487%; -5.481%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net6.0

  • 🟥 execution_time [+5.320µs; +9.051µs] or [+12.575%; +21.393%]
  • 🟥 throughput [-4297.173op/s; -2584.004op/s] or [-18.090%; -10.878%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark netcoreapp3.1

  • 🟩 throughput [+1865.723op/s; +3365.440op/s] or [+11.447%; +20.648%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.739ms; +303.824ms] or [+153.021%; +153.569%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+304.836ms; +307.485ms] or [+155.161%; +156.509%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+300.289ms; +302.602ms] or [+150.332%; +151.490%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0

  • 🟩 throughput [+33237.490op/s; +40703.841op/s] or [+6.291%; +7.704%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.429ms; +302.212ms] or [+149.737%; +150.625%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net6.0

  • 🟥 execution_time [+302.614ms; +304.047ms] or [+151.958%; +152.678%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog netcoreapp3.1

  • 🟥 execution_time [+303.859ms; +306.351ms] or [+154.098%; +155.361%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.428ms; +301.092ms] or [+149.855%; +150.186%]
  • 🟩 throughput [+51708774.764op/s; +58854498.972op/s] or [+37.658%; +42.861%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net6.0

  • 🟩 throughput [+993.216op/s; +1166.652op/s] or [+7.678%; +9.019%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore netcoreapp3.1

  • 🟥 execution_time [+298.898ms; +299.803ms] or [+149.083%; +149.535%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net6.0

  • 🟩 throughput [+92681.815op/s; +100090.043op/s] or [+8.653%; +9.345%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope netcoreapp3.1

  • 🟩 throughput [+53692.581op/s; +73033.365op/s] or [+6.215%; +8.453%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net6.0

  • 🟩 throughput [+83304.617op/s; +112975.070op/s] or [+6.448%; +8.744%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net6.0

  • 🟩 throughput [+49785.592op/s; +54867.115op/s] or [+9.040%; +9.963%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1

  • 🟩 throughput [+23011.550op/s; +33042.329op/s] or [+5.151%; +7.396%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net6.0

  • 🟩 throughput [+76939.747op/s; +94073.192op/s] or [+8.596%; +10.510%]

@github-actions

github-actions Bot commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Snapshots difference summary

The following differences have been observed in committed snapshots. It is meant to help the reviewer.
The diff is simplistic, so please check some files anyway while we improve it.

588 occurrences of :

+      db.user: postgres,

@vandonr
vandonr requested a review from a team as a code owner April 13, 2026 13:28
Comment on lines +89 to +96
settings.AddScrubber(builder =>
{
// scrub db.user tag because its presence varies
var lines = builder.ToString().Split(new[] { '\r', '\n' }, StringSplitOptions.None);
var filtered = string.Join(Environment.NewLine, lines.Where(line => !line.Contains("db.user:")));
builder.Clear();
builder.Append(filtered);
});

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like there should be a better way to say "scrub this tag", but I didn't find it

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

um, it shouldn't vary should it? 🤔

@vandonr vandonr Apr 13, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think what happens is that when we run it locally it has a connection string with user sa, and when it runs in the CI, there is no user in the connection string. I can clarify the comment.
I can also try to see if we can unify this so that the behavior is the same locally or in the CI

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And for the record, I believe you're looking for VerifyHelper.GetSpanVerifierSettings(), and the ScrubStringTags helper (wrap it, and pass your own implementation in that filters out the tag) 🙂

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote a more explicit comment. I didn't find using a custom ScrubStringTags to be really cleaner because it's pretty verbose too, and requires passing all the arguments explicitly to GetSpanVerifierSettings

return new TagsCacheItem(
dbName: GetConnectionStringValue(builder, "Database", "Initial Catalog", "InitialCatalog"),
dbUser: GetConnectionStringValue(builder, "User ID", "UserID"),
dbUser: GetConnectionStringValue(builder, "User ID", "UserID", "User", "Uid", "Username", "User Name"),

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in a sense, yes, but also, I don't think it's really an issue if we detect the user from a key that's not supposed to be in the connection string ? in what real world scenario would a custome complain that we detected the user from "User ID" on a DB where it's not the correct key to set the user ID ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had forgotten about this website, I sent my robot buddy visit it, it came back with another missing key

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it's really an issue if we detect the user from a key that's not supposed to be in the connection string

Come on, it's an easily avoidable bug 😝 What kind of shop do you think we're running here 😅

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't say it's really a "bug", and I wouldn't say it's "easily avoidable" either: we don't have access to the DB type here for instance, and we don't check it for other fields (dbName and outHost). So, if it's something we really want to do I'm fine with it, but it's going to be a bigger code change, and add complexity to this for, I'd argue, very little benefit

@lucaspimentel lucaspimentel Apr 16, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I misunderstood the issue, then. Thanks.

@vandonr vandonr changed the title fix user parsing in SQL connection string fix user & host parsing in SQL connection string Apr 15, 2026
@vandonr
vandonr enabled auto-merge (squash) April 16, 2026 15:06
@vandonr
vandonr merged commit afeeb86 into master Apr 16, 2026
138 of 139 checks passed
@vandonr
vandonr deleted the vandonr/fix2 branch April 16, 2026 16:00
@github-actions github-actions Bot added this to the vNext-v3 milestone Apr 16, 2026
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.

4 participants