-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable sidecar by default, only when telemetry is enabled
- Loading branch information
1 parent
78871c1
commit f7c26ee
Showing
8 changed files
with
66 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--TEST-- | ||
Sidecar should be disabled when telemetry is disabled | ||
--SKIPIF-- | ||
<?php include 'startup_logging_skipif_unix.inc'; ?> | ||
--FILE-- | ||
<?php | ||
include_once 'startup_logging.inc'; | ||
|
||
$logs = dd_get_startup_logs([], [ | ||
'DD_TRACE_DEBUG' => '1', | ||
'DD_INSTRUMENTATION_TELEMETRY_ENABLED' => '0', | ||
]); | ||
|
||
dd_dump_startup_logs($logs, [ | ||
'instrumentation_telemetry_enabled', | ||
'sidecar_trace_sender', | ||
]); | ||
|
||
?> | ||
--EXPECT-- | ||
instrumentation_telemetry_enabled: false | ||
sidecar_trace_sender: false |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?php | ||
|
||
include_once 'startup_logging.inc'; | ||
if (!dd_get_php_cgi()) die('skip: php-cgi SAPI required'); | ||
if (strncasecmp(PHP_OS, "WIN", 3) == 0) die('skip: There is no background sender on Windows'); | ||
// if ( version_compare(phpversion(),'8.3.0', '<')) die('skip: this test works only on PHP 8.3'); |