Remove duplicate "public" APIs and Internal prefix/suffixes#7546
Merged
andrewlock merged 7 commits intomasterfrom Sep 23, 2025
Merged
Remove duplicate "public" APIs and Internal prefix/suffixes#7546andrewlock merged 7 commits intomasterfrom
Internal prefix/suffixes#7546andrewlock merged 7 commits intomasterfrom
Conversation
This comment has been minimized.
This comment has been minimized.
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:
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.8)
dateFormat X
axisFormat %s
todayMarker off
section Bailout
This PR (7546) - mean (73ms) : 72, 75
. : milestone, 73,
master - mean (74ms) : 72, 75
. : milestone, 74,
section Baseline
This PR (7546) - mean (69ms) : 67, 71
. : milestone, 69,
master - mean (70ms) : 69, 72
. : milestone, 70,
section CallTarget+Inlining+NGEN
This PR (7546) - mean (1,057ms) : 1011, 1102
. : milestone, 1057,
master - mean (1,065ms) : 1006, 1124
. : milestone, 1065,
gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Bailout
This PR (7546) - mean (108ms) : 106, 110
. : milestone, 108,
master - mean (109ms) : 107, 111
. : milestone, 109,
section Baseline
This PR (7546) - mean (108ms) : 105, 111
. : milestone, 108,
master - mean (108ms) : 105, 111
. : milestone, 108,
section CallTarget+Inlining+NGEN
This PR (7546) - mean (752ms) : 724, 780
. : milestone, 752,
master - mean (756ms) : 730, 783
. : milestone, 756,
gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Bailout
This PR (7546) - mean (96ms) : 95, 97
. : milestone, 96,
master - mean (98ms) : 95, 101
. : milestone, 98,
section Baseline
This PR (7546) - mean (96ms) : 93, 99
. : milestone, 96,
master - mean (97ms) : 94, 100
. : milestone, 97,
section CallTarget+Inlining+NGEN
This PR (7546) - mean (710ms) : 687, 732
. : milestone, 710,
master - mean (720ms) : 685, 756
. : milestone, 720,
gantt
title Execution time (ms) FakeDbCommand (.NET 8)
dateFormat X
axisFormat %s
todayMarker off
section Bailout
This PR (7546) - mean (94ms) : 93, 95
. : milestone, 94,
master - mean (97ms) : 94, 99
. : milestone, 97,
section Baseline
This PR (7546) - mean (94ms) : 91, 96
. : milestone, 94,
master - mean (98ms) : 96, 100
. : milestone, 98,
section CallTarget+Inlining+NGEN
This PR (7546) - mean (664ms) : 649, 679
. : milestone, 664,
master - mean (674ms) : 658, 691
. : milestone, 674,
gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
dateFormat X
axisFormat %s
todayMarker off
section Bailout
This PR (7546) - mean (201ms) : 196, 205
. : milestone, 201,
master - mean (204ms) : 200, 209
. : milestone, 204,
section Baseline
This PR (7546) - mean (196ms) : 191, 201
. : milestone, 196,
master - mean (201ms) : 196, 206
. : milestone, 201,
section CallTarget+Inlining+NGEN
This PR (7546) - mean (1,179ms) : 1115, 1243
. : milestone, 1179,
master - mean (1,194ms) : 1121, 1267
. : milestone, 1194,
gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat X
axisFormat %s
todayMarker off
section Bailout
This PR (7546) - mean (282ms) : 278, 287
. : milestone, 282,
master - mean (289ms) : 283, 296
. : milestone, 289,
section Baseline
This PR (7546) - mean (281ms) : 276, 286
. : milestone, 281,
master - mean (289ms) : 282, 296
. : milestone, 289,
section CallTarget+Inlining+NGEN
This PR (7546) - mean (943ms) : 900, 986
. : milestone, 943,
master - mean (961ms) : 924, 999
. : milestone, 961,
gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat X
axisFormat %s
todayMarker off
section Bailout
This PR (7546) - mean (274ms) : 270, 278
. : milestone, 274,
master - mean (281ms) : 276, 285
. : milestone, 281,
section Baseline
This PR (7546) - mean (274ms) : 269, 280
. : milestone, 274,
master - mean (280ms) : 274, 286
. : milestone, 280,
section CallTarget+Inlining+NGEN
This PR (7546) - mean (932ms) : 891, 973
. : milestone, 932,
master - mean (948ms) : 910, 987
. : milestone, 948,
gantt
title Execution time (ms) HttpMessageHandler (.NET 8)
dateFormat X
axisFormat %s
todayMarker off
section Bailout
This PR (7546) - mean (272ms) : 267, 278
. : milestone, 272,
master - mean (286ms) : 275, 297
. : milestone, 286,
section Baseline
This PR (7546) - mean (273ms) : 264, 283
. : milestone, 273,
master - mean (283ms) : 275, 291
. : milestone, 283,
section CallTarget+Inlining+NGEN
This PR (7546) - mean (857ms) : 836, 878
. : milestone, 857,
master - mean (882ms) : 852, 912
. : milestone, 882,
|
tonyredondo
approved these changes
Sep 23, 2025
vandonr
approved these changes
Sep 23, 2025
lucaspimentel
approved these changes
Sep 23, 2025
a54d3cf to
f37068c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
[Public]which are no longer usedInternalsuffixes and prefixesReason for change
The
[Public]attributes were introduced in v2 when we needed to segregate APIs customer's invoke from our own internal APIs. To work around that, we created "duplicate" APIs for many functions, and decorated the public ones with[Public]. However, in v3, we have a separate shim, so this is no longer necessary, and those public APIs are entirely unused (outside of testing).Implementation details
Internalversions of the APIs exist, rename them and update calling code[Public]attributes for methods that we still don't really want to call from inside Datadog.Trace[Public]to[TestingOnly]) to give the same usage guards but being more explicit about the purposeTest coverage
Just removing dead code, so as long as the tests still pass, we should be good
Other details
Partly related to https://datadoghq.atlassian.net/browse/LANGPLAT-819 and the config stack, as want to avoid needing to handle unused APIs