Skip to content

[IBM MQ] Fix queue naming by removing URI prefix#8080

Merged
johannbotha merged 4 commits intomasterfrom
jj.botha/fix-ibmmq-queue-naming
Jan 20, 2026
Merged

[IBM MQ] Fix queue naming by removing URI prefix#8080
johannbotha merged 4 commits intomasterfrom
jj.botha/fix-ibmmq-queue-naming

Conversation

@johannbotha
Copy link
Contributor

Summary

  • Sanitize IBM MQ queue names by stripping queue:// and topic:// URI scheme prefixes
  • Applied to DSM edge tags, span tags, and resource names
  • Aligns with how other messaging integrations report queue/topic names

Before: queue://my_ibmmq.queue.1
After: my_ibmmq.queue.1

Changes

  • Added SanitizeQueueName() method to IbmMqHelper.cs
  • Updated PutIntegration.cs and GetIntegration.cs to use sanitized names in DSM edge tags
  • Updated CreateProducerScope() and CreateConsumerScope() to use sanitized names

Test plan

  • Added unit tests for SanitizeQueueName method covering:
    • queue:// prefix removal (case insensitive)
    • topic:// prefix removal (case insensitive)
    • Preserving names without prefixes
    • Null and empty string handling
    • Other URI schemes preserved (http, https, amqp, etc.)
  • All 22 tests passing

🤖 Generated with Claude Code

Sanitize IBM MQ queue names by stripping `queue://` and `topic://` URI
scheme prefixes from queue names in DSM edge tags, span tags, and
resource names.

This aligns with how other messaging integrations report queue/topic
names and matches the expected format in the Datadog UI.

Before: `queue://my_ibmmq.queue.1`
After: `my_ibmmq.queue.1`

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@johannbotha johannbotha requested review from a team as code owners January 16, 2026 22:04
@pr-commenter
Copy link

pr-commenter bot commented Jan 16, 2026

Benchmarks

Benchmark execution time: 2026-01-20 20:41:28

Comparing candidate commit aeea635 in PR branch jj.botha/fix-ibmmq-queue-naming with baseline commit 1b5e971 in branch master.

Found 16 performance improvements and 5 performance regressions! Performance is the same for 151 metrics, 20 unstable metrics.

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

  • 🟥 execution_time [+78.995ms; +79.441ms] or [+64.681%; +65.046%]

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

  • 🟥 execution_time [+14.687ms; +20.210ms] or [+7.415%; +10.203%]

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

  • 🟩 execution_time [-23.135ms; -16.920ms] or [-10.691%; -7.819%]

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

  • 🟥 execution_time [+25.122ms; +25.431ms] or [+14.198%; +14.373%]

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

  • 🟩 execution_time [-22.974ms; -22.498ms] or [-11.300%; -11.066%]

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

  • 🟥 execution_time [+103.431ms; +105.063ms] or [+107.883%; +109.585%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • 🟩 execution_time [-119.463µs; -115.337µs] or [-5.920%; -5.716%]
  • 🟩 throughput [+30.052op/s; +31.177op/s] or [+6.064%; +6.291%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1

  • 🟩 execution_time [-225.006µs; -217.687µs] or [-7.649%; -7.400%]
  • 🟩 throughput [+27.186op/s; +28.141op/s] or [+7.997%; +8.278%]

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

  • 🟩 execution_time [-98.394µs; -93.446µs] or [-8.689%; -8.252%]
  • 🟩 throughput [+79.571op/s; +83.890op/s] or [+9.010%; +9.500%]

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

  • 🟩 execution_time [-158.934µs; -153.119µs] or [-7.706%; -7.425%]
  • 🟩 throughput [+38.901op/s; +40.480op/s] or [+8.023%; +8.348%]

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

  • 🟩 throughput [+24037.762op/s; +29551.997op/s] or [+5.847%; +7.189%]

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

  • 🟥 throughput [-450.174op/s; -259.460op/s] or [-20.892%; -12.041%]

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

  • 🟩 execution_time [-52.124ms; -51.350ms] or [-34.651%; -34.137%]

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

  • 🟩 throughput [+14347351.565op/s; +15536702.303op/s] or [+6.359%; +6.887%]

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

  • 🟩 execution_time [-16.616ms; -12.747ms] or [-7.822%; -6.000%]

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

  • 🟩 execution_time [-16.024ms; -11.957ms] or [-7.596%; -5.668%]
  • 🟩 throughput [+82599.002op/s; +103877.320op/s] or [+9.270%; +11.658%]

@dd-trace-dotnet-ci-bot
Copy link

dd-trace-dotnet-ci-bot bot commented Jan 16, 2026

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8080) 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
duration73.29 ± (73.14 - 73.56) ms72.63 ± (72.68 - 73.17) ms-0.9%
.NET Framework 4.8 - Bailout
duration77.85 ± (77.83 - 78.30) ms77.23 ± (77.21 - 77.66) ms-0.8%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1049.08 ± (1053.35 - 1064.63) ms1051.30 ± (1049.62 - 1059.66) ms+0.2%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.61 ± (22.54 - 22.68) ms22.31 ± (22.26 - 22.36) ms-1.3%
process.time_to_main_ms85.43 ± (85.17 - 85.69) ms83.40 ± (83.15 - 83.64) ms-2.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.90 ± (10.90 - 10.91) MB10.89 ± (10.89 - 10.89) MB-0.1%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.60 ± (22.56 - 22.63) ms22.36 ± (22.31 - 22.41) ms-1.0%
process.time_to_main_ms86.96 ± (86.78 - 87.15) ms85.50 ± (85.28 - 85.72) ms-1.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.93 - 10.94) MB10.93 ± (10.93 - 10.93) MB-0.1%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms245.60 ± (241.82 - 249.38) ms251.10 ± (247.11 - 255.10) ms+2.2%✅⬆️
process.time_to_main_ms494.70 ± (493.22 - 496.19) ms494.79 ± (493.36 - 496.21) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.26 ± (48.24 - 48.29) MB48.25 ± (48.23 - 48.28) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.33 ± (21.28 - 21.37) ms21.18 ± (21.12 - 21.23) ms-0.7%
process.time_to_main_ms74.11 ± (73.90 - 74.32) ms73.66 ± (73.37 - 73.94) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.61 - 10.62) MB10.62 ± (10.61 - 10.62) MB-0.0%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.28 ± (21.24 - 21.33) ms21.35 ± (21.30 - 21.40) ms+0.3%✅⬆️
process.time_to_main_ms75.64 ± (75.42 - 75.86) ms75.50 ± (75.27 - 75.73) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.70 ± (10.69 - 10.70) MB10.72 ± (10.72 - 10.73) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms239.93 ± (236.14 - 243.71) ms237.53 ± (233.65 - 241.41) ms-1.0%
process.time_to_main_ms465.57 ± (464.36 - 466.79) ms465.71 ± (464.46 - 466.97) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.05 ± (49.02 - 49.08) MB49.05 ± (49.02 - 49.07) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms19.36 ± (19.31 - 19.40) ms19.53 ± (19.49 - 19.58) ms+0.9%✅⬆️
process.time_to_main_ms72.44 ± (72.19 - 72.68) ms72.79 ± (72.58 - 73.00) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.65 ± (7.64 - 7.65) MB7.66 ± (7.66 - 7.67) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.46 ± (19.42 - 19.50) ms19.43 ± (19.40 - 19.47) ms-0.1%
process.time_to_main_ms74.08 ± (73.91 - 74.24) ms73.90 ± (73.72 - 74.08) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.73 ± (7.72 - 7.74) MB7.72 ± (7.71 - 7.72) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms186.71 ± (185.92 - 187.50) ms186.25 ± (185.40 - 187.10) ms-0.2%
process.time_to_main_ms450.39 ± (448.84 - 451.93) ms450.95 ± (449.54 - 452.36) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.61 ± (36.58 - 36.65) MB36.69 ± (36.66 - 36.72) MB+0.2%✅⬆️
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
duration194.08 ± (193.94 - 194.70) ms198.09 ± (197.91 - 198.85) ms+2.1%✅⬆️
.NET Framework 4.8 - Bailout
duration199.86 ± (199.84 - 200.82) ms201.92 ± (202.07 - 203.13) ms+1.0%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1124.77 ± (1127.81 - 1136.74) ms1138.01 ± (1140.73 - 1149.68) ms+1.2%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms188.80 ± (188.42 - 189.17) ms189.50 ± (189.14 - 189.85) ms+0.4%✅⬆️
process.time_to_main_ms82.03 ± (81.79 - 82.27) ms82.47 ± (82.20 - 82.74) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.05 ± (16.03 - 16.08) MB16.12 ± (16.09 - 16.15) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms187.42 ± (187.14 - 187.69) ms189.30 ± (188.90 - 189.71) ms+1.0%✅⬆️
process.time_to_main_ms82.77 ± (82.63 - 82.92) ms83.54 ± (83.30 - 83.77) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.16 ± (16.14 - 16.19) MB16.07 ± (16.05 - 16.09) MB-0.6%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.3%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms435.15 ± (432.16 - 438.15) ms430.37 ± (427.13 - 433.61) ms-1.1%
process.time_to_main_ms475.89 ± (475.20 - 476.59) ms482.34 ± (481.40 - 483.27) ms+1.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.61 ± (58.49 - 58.74) MB58.80 ± (58.69 - 58.91) MB+0.3%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 30)30 ± (29 - 30)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms193.08 ± (192.76 - 193.40) ms193.62 ± (193.24 - 194.00) ms+0.3%✅⬆️
process.time_to_main_ms71.32 ± (71.10 - 71.54) ms70.88 ± (70.70 - 71.06) ms-0.6%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.27 ± (16.16 - 16.38) MB16.39 ± (16.34 - 16.44) MB+0.7%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.3%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms191.68 ± (191.28 - 192.08) ms192.02 ± (191.76 - 192.28) ms+0.2%✅⬆️
process.time_to_main_ms71.80 ± (71.66 - 71.93) ms71.77 ± (71.64 - 71.91) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.13 ± (15.99 - 16.28) MB16.04 ± (15.88 - 16.19) MB-0.6%
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)+0.7%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms445.07 ± (442.00 - 448.14) ms437.25 ± (433.82 - 440.69) ms-1.8%
process.time_to_main_ms455.26 ± (454.62 - 455.91) ms454.58 ± (454.04 - 455.11) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed59.04 ± (58.91 - 59.17) MB59.06 ± (58.92 - 59.21) MB+0.0%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms190.93 ± (190.59 - 191.26) ms190.74 ± (190.33 - 191.16) ms-0.1%
process.time_to_main_ms70.50 ± (70.26 - 70.75) ms70.29 ± (70.08 - 70.50) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.79 ± (11.76 - 11.81) MB11.82 ± (11.79 - 11.85) MB+0.3%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.8%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms190.95 ± (190.60 - 191.31) ms190.62 ± (190.18 - 191.05) ms-0.2%
process.time_to_main_ms71.58 ± (71.40 - 71.75) ms71.38 ± (71.24 - 71.53) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.91 ± (11.88 - 11.95) MB11.81 ± (11.79 - 11.84) MB-0.8%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.1%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms369.52 ± (368.04 - 371.00) ms368.14 ± (366.93 - 369.36) ms-0.4%
process.time_to_main_ms436.57 ± (435.99 - 437.15) ms437.70 ± (437.06 - 438.33) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed48.17 ± (48.14 - 48.20) MB48.20 ± (48.17 - 48.24) MB+0.1%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.1%
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 (8080) - mean (73ms)  : 69, 77
    master - mean (73ms)  : 70, 76

    section Bailout
    This PR (8080) - mean (77ms)  : 74, 81
    master - mean (78ms)  : 75, 82

    section CallTarget+Inlining+NGEN
    This PR (8080) - mean (1,055ms)  : 980, 1129
    master - mean (1,059ms)  : 972, 1146

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 (8080) - mean (112ms)  : 106, 118
    master - mean (115ms)  : 110, 120

    section Bailout
    This PR (8080) - mean (114ms)  : 110, 119
    master - mean (116ms)  : 113, 120

    section CallTarget+Inlining+NGEN
    This PR (8080) - mean (782ms)  : 702, 861
    master - mean (777ms)  : 710, 844

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

    section Bailout
    This PR (8080) - mean (103ms)  : 98, 108
    master - mean (103ms)  : 98, 108

    section CallTarget+Inlining+NGEN
    This PR (8080) - mean (736ms)  : 673, 800
    master - mean (738ms)  : 672, 804

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8080) - mean (100ms)  : 96, 104
    master - mean (99ms)  : 94, 104

    section Bailout
    This PR (8080) - mean (101ms)  : 97, 105
    master - mean (101ms)  : 97, 104

    section CallTarget+Inlining+NGEN
    This PR (8080) - mean (670ms)  : 635, 705
    master - mean (671ms)  : 634, 708

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 (8080) - mean (198ms)  : 191, 205
    master - mean (194ms)  : 190, 198

    section Bailout
    This PR (8080) - mean (203ms)  : 195, 210
    master - mean (200ms)  : 195, 205

    section CallTarget+Inlining+NGEN
    This PR (8080) - mean (1,145ms)  : 1079, 1211
    master - mean (1,132ms)  : 1065, 1200

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 (8080) - mean (281ms)  : 275, 286
    master - mean (279ms)  : 274, 285

    section Bailout
    This PR (8080) - mean (281ms)  : 276, 287
    master - mean (279ms)  : 275, 282

    section CallTarget+Inlining+NGEN
    This PR (8080) - mean (944ms)  : 898, 991
    master - mean (942ms)  : 902, 981

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8080) - mean (273ms)  : 267, 279
    master - mean (273ms)  : 267, 278

    section Bailout
    This PR (8080) - mean (272ms)  : 269, 275
    master - mean (272ms)  : 266, 277

    section CallTarget+Inlining+NGEN
    This PR (8080) - mean (923ms)  : 863, 984
    master - mean (928ms)  : 876, 981

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8080) - mean (271ms)  : 264, 278
    master - mean (271ms)  : 266, 276

    section Bailout
    This PR (8080) - mean (272ms)  : 267, 276
    master - mean (272ms)  : 267, 277

    section CallTarget+Inlining+NGEN
    This PR (8080) - mean (838ms)  : 818, 858
    master - mean (837ms)  : 814, 860

Loading

Address review feedback to use the existing StringUtil.IsNullOrEmpty
helper which properly handles nullability warnings on older runtimes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
[Fact]
public void SanitizeQueueName_HandlesQueueNameWithSpecialCharacters()
{
var result = IbmMqHelper.SanitizeQueueName("queue://MY.QUEUE_NAME-123");
Copy link
Member

@lucaspimentel lucaspimentel Jan 20, 2026

Choose a reason for hiding this comment

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

This test name says "with special characters." What are the special characters here?
Can we remove SanitizeQueueName_HandlesQueueNameWithSpecialCharacters(), or include this test case in SanitizeQueueName_RemovesQueueUriPrefix()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done - moved to the existing Theory.

}

[Fact]
public void SanitizeQueueName_HandlesEmptyQueueNameAfterPrefix()
Copy link
Member

Choose a reason for hiding this comment

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

Can we convert this from [Fact] to [Theory] and test for "topic://" as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done - converted to Theory with both queue:// and topic://.

johannbotha and others added 2 commits January 20, 2026 14:55
Consolidate test for queue names with special characters (., _, -)
into the existing SanitizeQueueName_RemovesQueueUriPrefix Theory
instead of having a separate test method.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Test both queue:// and topic:// prefixes with empty names after
the prefix to ensure consistent behavior.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@johannbotha johannbotha enabled auto-merge (squash) January 20, 2026 20:15
@johannbotha johannbotha merged commit ef25d86 into master Jan 20, 2026
150 checks passed
@johannbotha johannbotha deleted the jj.botha/fix-ibmmq-queue-naming branch January 20, 2026 21:06
@github-actions github-actions bot added this to the vNext-v3 milestone Jan 20, 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