Ports bbe11d6d to 11.x.
Resolved the OpenTelemetryPerformanceTest.php conflict by keeping the 11.x ScriptCount and StylesheetBytes values, and reducing ScriptBytes by the same amount as the main commit.
Closes #3607794