Skip to content

[Dynamic Instrumentation] DEBUG-5018 Send logs to debugger intake#8092

Merged
dudikeleti merged 1 commit intomasterfrom
dudik/di/send-logs-to-debugger
Jan 23, 2026
Merged

[Dynamic Instrumentation] DEBUG-5018 Send logs to debugger intake#8092
dudikeleti merged 1 commit intomasterfrom
dudik/di/send-logs-to-debugger

Conversation

@dudikeleti
Copy link
Contributor

Summary of changes

Updated logs to use the same preferred endpoint selection as snapshots.

Reason for change

Logs should be sent to the debugger intake so we can redact them like snapshots.

Implementation details

Centralized endpoint fallback selection in AgentConfiguration:
DebuggerUploadEndpoint: DebuggerV2Endpoint ?? DiagnosticsEndpoint (used by snapshots and logs)
DebuggerDiagnosticsUploadEndpoint: DiagnosticsEndpoint ?? DebuggerEndpoint (used by diagnostics)
Updated upload APIs to use the centralized properties:
SnapshotUploadApi → c.DebuggerUploadEndpoint
LogUploadApi → c.DebuggerUploadEndpoint
DiagnosticsUploadApi → c.DebuggerDiagnosticsUploadEndpoint

@dudikeleti dudikeleti requested review from a team as code owners January 22, 2026 15:33
@dudikeleti dudikeleti requested a review from Copilot January 22, 2026 15:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR centralizes debugger endpoint selection logic by introducing computed properties in AgentConfiguration to determine the appropriate upload endpoints for different types of debugger data. The change ensures logs are sent to the debugger intake (v2 endpoint) for redaction support, aligning with how snapshots are handled.

Changes:

  • Added DebuggerUploadEndpoint and DebuggerDiagnosticsUploadEndpoint computed properties to centralize endpoint fallback logic
  • Updated upload APIs (Snapshot, Log, and Diagnostics) to use the new centralized properties
  • Fixed incorrect method name in DebuggerFactory.cs

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tracer/src/Datadog.Trace/Agent/DiscoveryService/AgentConfiguration.cs Added computed properties for centralized endpoint selection with fallback logic
tracer/src/Datadog.Trace/Debugger/Upload/SnapshotUploadApi.cs Updated to use DebuggerUploadEndpoint property instead of inline fallback logic
tracer/src/Datadog.Trace/Debugger/Upload/LogUploadApi.cs Changed from DebuggerEndpoint to DebuggerUploadEndpoint to use v2 intake
tracer/src/Datadog.Trace/Debugger/Upload/DiagnosticsUploadApi.cs Updated to use DebuggerDiagnosticsUploadEndpoint property instead of inline fallback logic
tracer/src/Datadog.Trace/Agent/DiscoveryService/DiscoveryService.cs Removed inline fallback logic, now handled by computed property
tracer/src/Datadog.Trace/Debugger/DebuggerFactory.cs Corrected method name from CreateSnapshotUploader to CreateLogUploader

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions github-actions bot added area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) area:debugger labels Jan 22, 2026
@pr-commenter
Copy link

pr-commenter bot commented Jan 22, 2026

Benchmarks

Benchmark execution time: 2026-01-22 16:17:02

Comparing candidate commit 7f1d0a5 in PR branch dudik/di/send-logs-to-debugger with baseline commit 7fcbc9a in branch master.

Found 11 performance improvements and 12 performance regressions! Performance is the same for 150 metrics, 19 unstable metrics.

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

  • 🟩 execution_time [-110.674ms; -109.940ms] or [-50.136%; -49.803%]

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

  • 🟩 execution_time [-21.688ms; -15.915ms] or [-10.152%; -7.450%]

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

  • 🟩 execution_time [-24.875ms; -19.233ms] or [-11.487%; -8.882%]

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

  • 🟥 execution_time [+9.752ms; +11.297ms] or [+5.140%; +5.954%]

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

  • 🟥 execution_time [+25.513ms; +25.760ms] or [+14.388%; +14.527%]

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

  • 🟩 execution_time [-22.324ms; -21.623ms] or [-10.988%; -10.643%]

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

  • 🟩 execution_time [-104.340ms; -97.924ms] or [-52.599%; -49.364%]

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

  • 🟥 execution_time [+27.920ms; +33.367ms] or [+16.395%; +19.594%]

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

  • 🟥 execution_time [+72.528µs; +79.126µs] or [+5.210%; +5.685%]

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

  • 🟩 execution_time [-893.581µs; -646.267µs] or [-32.109%; -23.222%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472

  • 🟥 execution_time [+60.804µs; +64.529µs] or [+5.372%; +5.701%]
  • 🟥 throughput [-47.753op/s; -44.943op/s] or [-5.405%; -5.087%]

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

  • 🟩 throughput [+40462.320op/s; +49081.052op/s] or [+10.280%; +12.470%]

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

  • 🟥 throughput [-44817.399op/s; -36701.675op/s] or [-8.430%; -6.904%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync netcoreapp3.1

  • 🟩 throughput [+7323.230op/s; +8887.416op/s] or [+6.402%; +7.770%]

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

  • 🟥 execution_time [+30.252ms; +34.979ms] or [+17.851%; +20.640%]

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

  • 🟥 execution_time [+10.360ms; +14.259ms] or [+5.275%; +7.261%]

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

  • 🟩 execution_time [-14.919ms; -10.667ms] or [-7.177%; -5.131%]

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

  • 🟩 throughput [+14592399.723op/s; +16062116.545op/s] or [+6.480%; +7.132%]

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

  • 🟥 execution_time [+14.736ms; +15.567ms] or [+7.477%; +7.899%]

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

  • 🟩 execution_time [-18.638ms; -12.800ms] or [-8.747%; -6.008%]

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

  • 🟥 throughput [-84016.214op/s; -60764.261op/s] or [-8.820%; -6.379%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

  • 🟥 execution_time [+10.407ms; +14.387ms] or [+5.251%; +7.260%]

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

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8092) 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
duration68.61 ± (68.58 - 68.79) ms68.29 ± (68.30 - 68.50) ms-0.5%
.NET Framework 4.8 - Bailout
duration72.34 ± (72.22 - 72.44) ms72.33 ± (72.24 - 72.47) ms-0.0%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1010.32 ± (1016.91 - 1031.12) ms1004.80 ± (1011.22 - 1021.05) ms-0.5%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.07 ± (22.04 - 22.10) ms21.91 ± (21.88 - 21.94) ms-0.7%
process.time_to_main_ms78.91 ± (78.75 - 79.06) ms78.86 ± (78.70 - 79.02) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.90 ± (10.89 - 10.90) MB10.92 ± (10.91 - 10.92) MB+0.2%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.03 ± (22.01 - 22.05) ms21.84 ± (21.82 - 21.86) ms-0.9%
process.time_to_main_ms80.01 ± (79.92 - 80.10) ms80.17 ± (80.08 - 80.26) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.93 ± (10.92 - 10.93) MB10.94 ± (10.93 - 10.94) MB+0.1%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms244.10 ± (240.65 - 247.56) ms245.78 ± (241.63 - 249.93) ms+0.7%✅⬆️
process.time_to_main_ms468.65 ± (468.05 - 469.26) ms470.27 ± (469.57 - 470.98) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.42 ± (48.40 - 48.44) MB48.35 ± (48.32 - 48.37) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.9%
.NET 6 - Baseline
process.internal_duration_ms20.48 ± (20.46 - 20.51) ms20.59 ± (20.57 - 20.62) ms+0.5%✅⬆️
process.time_to_main_ms68.17 ± (68.05 - 68.30) ms68.38 ± (68.26 - 68.50) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.63 - 10.63) MB10.62 ± (10.62 - 10.63) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.53 ± (20.50 - 20.55) ms20.55 ± (20.53 - 20.57) ms+0.1%✅⬆️
process.time_to_main_ms69.26 ± (69.20 - 69.32) ms69.62 ± (69.53 - 69.72) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.67 ± (10.66 - 10.67) MB10.75 ± (10.73 - 10.76) MB+0.7%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms241.11 ± (238.36 - 243.87) ms248.38 ± (246.53 - 250.24) ms+3.0%✅⬆️
process.time_to_main_ms446.13 ± (445.61 - 446.65) ms447.75 ± (447.18 - 448.32) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.20 ± (49.17 - 49.23) MB49.15 ± (49.11 - 49.18) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms18.82 ± (18.79 - 18.84) ms18.89 ± (18.86 - 18.93) ms+0.4%✅⬆️
process.time_to_main_ms67.35 ± (67.24 - 67.46) ms67.57 ± (67.45 - 67.69) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.66 - 7.67) MB7.68 ± (7.68 - 7.69) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms18.81 ± (18.79 - 18.84) ms18.93 ± (18.90 - 18.96) ms+0.6%✅⬆️
process.time_to_main_ms68.36 ± (68.29 - 68.42) ms68.84 ± (68.76 - 68.93) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.75 ± (7.74 - 7.76) MB7.73 ± (7.72 - 7.74) MB-0.3%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms177.60 ± (176.72 - 178.47) ms177.95 ± (177.04 - 178.86) ms+0.2%✅⬆️
process.time_to_main_ms430.90 ± (430.02 - 431.78) ms431.56 ± (430.79 - 432.34) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.51 ± (36.48 - 36.54) MB36.62 ± (36.59 - 36.65) MB+0.3%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)26 ± (26 - 26)-0.4%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration193.42 ± (193.69 - 194.53) ms193.81 ± (193.84 - 194.53) ms+0.2%✅⬆️
.NET Framework 4.8 - Bailout
duration197.75 ± (197.70 - 198.41) ms198.22 ± (197.95 - 198.56) ms+0.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1129.36 ± (1134.81 - 1145.83) ms1124.76 ± (1127.14 - 1135.75) ms-0.4%
.NET Core 3.1 - Baseline
process.internal_duration_ms187.64 ± (187.33 - 187.96) ms188.34 ± (188.01 - 188.67) ms+0.4%✅⬆️
process.time_to_main_ms80.86 ± (80.66 - 81.06) ms81.57 ± (81.37 - 81.77) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.11 ± (16.07 - 16.14) MB16.16 ± (16.14 - 16.19) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (19 - 20)-0.3%
.NET Core 3.1 - Bailout
process.internal_duration_ms186.77 ± (186.55 - 187.00) ms188.38 ± (187.97 - 188.79) ms+0.9%✅⬆️
process.time_to_main_ms82.14 ± (82.00 - 82.29) ms83.03 ± (82.81 - 83.25) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.15 ± (16.12 - 16.18) MB16.11 ± (16.08 - 16.14) MB-0.2%
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (20 - 21)+0.3%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms417.50 ± (414.03 - 420.96) ms427.99 ± (424.68 - 431.30) ms+2.5%✅⬆️
process.time_to_main_ms473.31 ± (472.70 - 473.91) ms476.05 ± (475.36 - 476.74) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.83 ± (58.72 - 58.94) MB58.82 ± (58.71 - 58.94) MB-0.0%
runtime.dotnet.threads.count29 ± (29 - 30)29 ± (29 - 29)-0.1%
.NET 6 - Baseline
process.internal_duration_ms192.34 ± (191.96 - 192.71) ms193.56 ± (193.14 - 193.98) ms+0.6%✅⬆️
process.time_to_main_ms70.72 ± (70.47 - 70.97) ms71.16 ± (70.93 - 71.38) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.05 ± (15.91 - 16.20) MB16.36 ± (16.34 - 16.38) MB+1.9%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 19)19 ± (19 - 19)+3.7%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms191.16 ± (190.86 - 191.46) ms192.46 ± (192.07 - 192.84) ms+0.7%✅⬆️
process.time_to_main_ms71.43 ± (71.29 - 71.58) ms71.94 ± (71.78 - 72.09) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.33 ± (16.22 - 16.43) MB16.31 ± (16.20 - 16.42) MB-0.1%
runtime.dotnet.threads.count19 ± (19 - 20)20 ± (19 - 20)+1.2%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms444.95 ± (441.59 - 448.31) ms447.22 ± (443.91 - 450.53) ms+0.5%✅⬆️
process.time_to_main_ms453.50 ± (452.79 - 454.21) ms455.19 ± (454.65 - 455.72) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed58.65 ± (58.53 - 58.77) MB58.77 ± (58.63 - 58.91) MB+0.2%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.1%
.NET 8 - Baseline
process.internal_duration_ms191.48 ± (191.04 - 191.92) ms190.94 ± (190.50 - 191.38) ms-0.3%
process.time_to_main_ms70.19 ± (69.98 - 70.39) ms70.18 ± (70.00 - 70.36) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.74 ± (11.71 - 11.76) MB11.78 ± (11.76 - 11.81) MB+0.4%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.4%
.NET 8 - Bailout
process.internal_duration_ms189.13 ± (188.89 - 189.37) ms189.94 ± (189.75 - 190.13) ms+0.4%✅⬆️
process.time_to_main_ms70.86 ± (70.74 - 70.98) ms71.18 ± (71.06 - 71.29) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.85 ± (11.83 - 11.88) MB11.82 ± (11.80 - 11.84) MB-0.3%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.3%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms364.68 ± (362.98 - 366.38) ms366.71 ± (365.27 - 368.15) ms+0.6%✅⬆️
process.time_to_main_ms435.53 ± (434.87 - 436.19) ms437.73 ± (437.16 - 438.31) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed48.25 ± (48.21 - 48.28) MB48.25 ± (48.22 - 48.28) MB+0.0%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.2%
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 (8092) - mean (68ms)  : 67, 70
    master - mean (69ms)  : 67, 70

    section Bailout
    This PR (8092) - mean (72ms)  : 71, 73
    master - mean (72ms)  : 71, 73

    section CallTarget+Inlining+NGEN
    This PR (8092) - mean (1,016ms)  : 943, 1089
    master - mean (1,024ms)  : 938, 1110

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 (8092) - mean (106ms)  : 104, 108
    master - mean (106ms)  : 104, 109

    section Bailout
    This PR (8092) - mean (107ms)  : 106, 108
    master - mean (107ms)  : 106, 108

    section CallTarget+Inlining+NGEN
    This PR (8092) - mean (741ms)  : 688, 794
    master - mean (738ms)  : 685, 792

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8092) - mean (94ms)  : 91, 97
    master - mean (93ms)  : 91, 95

    section Bailout
    This PR (8092) - mean (95ms)  : 94, 96
    master - mean (94ms)  : 94, 95

    section CallTarget+Inlining+NGEN
    This PR (8092) - mean (722ms)  : 694, 750
    master - mean (711ms)  : 667, 755

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8092) - mean (93ms)  : 90, 95
    master - mean (92ms)  : 90, 95

    section Bailout
    This PR (8092) - mean (94ms)  : 93, 95
    master - mean (93ms)  : 92, 94

    section CallTarget+Inlining+NGEN
    This PR (8092) - mean (638ms)  : 623, 652
    master - mean (636ms)  : 623, 650

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 (8092) - mean (194ms)  : 191, 197
    master - mean (194ms)  : 188, 200

    section Bailout
    This PR (8092) - mean (198ms)  : 195, 201
    master - mean (198ms)  : 195, 201

    section CallTarget+Inlining+NGEN
    This PR (8092) - mean (1,131ms)  : 1070, 1193
    master - mean (1,140ms)  : 1054, 1227

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 (8092) - mean (278ms)  : 274, 283
    master - mean (277ms)  : 271, 283

    section Bailout
    This PR (8092) - mean (279ms)  : 275, 284
    master - mean (277ms)  : 274, 280

    section CallTarget+Inlining+NGEN
    This PR (8092) - mean (934ms)  : 890, 977
    master - mean (924ms)  : 876, 972

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8092) - mean (274ms)  : 265, 282
    master - mean (271ms)  : 265, 277

    section Bailout
    This PR (8092) - mean (273ms)  : 266, 279
    master - mean (271ms)  : 267, 274

    section CallTarget+Inlining+NGEN
    This PR (8092) - mean (932ms)  : 886, 978
    master - mean (928ms)  : 877, 979

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8092) - mean (271ms)  : 265, 277
    master - mean (272ms)  : 265, 278

    section Bailout
    This PR (8092) - mean (271ms)  : 268, 274
    master - mean (270ms)  : 267, 273

    section CallTarget+Inlining+NGEN
    This PR (8092) - mean (838ms)  : 799, 877
    master - mean (831ms)  : 811, 850

Loading

@dudikeleti dudikeleti enabled auto-merge (squash) January 23, 2026 09:21
@dudikeleti dudikeleti merged commit a7f09d3 into master Jan 23, 2026
155 checks passed
@dudikeleti dudikeleti deleted the dudik/di/send-logs-to-debugger branch January 23, 2026 13:56
@github-actions github-actions bot added this to the vNext-v3 milestone Jan 23, 2026
dudikeleti added a commit that referenced this pull request Jan 23, 2026
)

## Summary of changes
Updated logs to use the same preferred endpoint selection as snapshots.

## Reason for change
Logs should be sent to the debugger intake so we can redact them like
snapshots.

## Implementation details
Centralized endpoint fallback selection in AgentConfiguration:
DebuggerUploadEndpoint: `DebuggerV2Endpoint ?? DiagnosticsEndpoint`
(used by snapshots and logs)
DebuggerDiagnosticsUploadEndpoint: `DiagnosticsEndpoint ??
DebuggerEndpoint` (used by diagnostics)
Updated upload APIs to use the centralized properties:
SnapshotUploadApi → `c.DebuggerUploadEndpoint`
LogUploadApi → `c.DebuggerUploadEndpoint`
DiagnosticsUploadApi → `c.DebuggerDiagnosticsUploadEndpoint`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:debugger area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants