-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prevent flushing traces of requests without actual PHP code (#1327) Signed-off-by: Bob Weinand <[email protected]> * Release 0.65.1 * fix formatting of notes in package.xml Co-authored-by: Bob Weinand <[email protected]>
- Loading branch information
Showing
8 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#ifndef PHP_DDTRACE_VERSION | ||
// Must begin with a number for Debian packaging requirements | ||
#define PHP_DDTRACE_VERSION "0.65.0" | ||
#define PHP_DDTRACE_VERSION "0.65.1" | ||
#endif |
This file contains 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
This file contains 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
27 changes: 27 additions & 0 deletions
27
tests/Integrations/Custom/Autoloaded/NonExecutingEndpointsTracingTest.php
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace DDTrace\Tests\Integrations\Custom\Autoloaded; | ||
|
||
use DDTrace\Tests\Common\WebFrameworkTestCase; | ||
use DDTrace\Tests\Frameworks\Util\Request\GetSpec; | ||
|
||
final class NonExecutingEndpointsTracingTest extends WebFrameworkTestCase | ||
{ | ||
protected static function getAppIndexScript() | ||
{ | ||
return __DIR__ . '/../../../Frameworks/Custom/Version_Autoloaded/public/index.php'; | ||
} | ||
|
||
public function testStatusPageDoesNotGenerateTraces() | ||
{ | ||
if (\getenv('DD_TRACE_TEST_SAPI') != 'fpm-fcgi') { | ||
$this->markTestSkipped('Only run under fpm-fcgi SAPI'); | ||
} | ||
|
||
$traces = $this->tracesFromWebRequest(function () { | ||
$this->call(GetSpec::create('No spans from status page', '/status')); | ||
}); | ||
|
||
self::assertEmpty($traces); | ||
} | ||
} |
This file contains 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
This file contains 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