Skip to content

Commit e9711d3

Browse files
committed
test: debug sqlsrv integration
Signed-off-by: Alexandre Rulleau <[email protected]>
1 parent 38fb3d1 commit e9711d3

File tree

4 files changed

+4
-45
lines changed

4 files changed

+4
-45
lines changed

tests/ext/library_config/fleet_config.phpt

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ copy(__DIR__.'/fleet_config.yaml', '/tmp/test_c_fleet_config.yaml');
1818
_DD_TEST_LIBRARY_CONFIG_FLEET_FILE=/tmp/test_c_fleet_config.yaml
1919
_DD_TEST_LIBRARY_CONFIG_LOCAL_FILE=/foo
2020
DD_TRACE_SPANS_LIMIT=42
21-
DD_TRACE_DEBUG=1
22-
DD_TRACE_LOG_FILE=/tmp/log-fleet-config.txt
2321
--INI--
2422
datadog.trace.agent_url="file://{PWD}/fleet-config-telemetry.out"
2523
--FILE--
@@ -70,27 +68,6 @@ for ($i = 0; $i < 100; ++$i) {
7068
}
7169
}
7270

73-
74-
if (!file_exists(__DIR__ . '/fleet-config-telemetry.out')) {
75-
echo "Telemetry file not found\n";
76-
77-
$logFile = '/tmp/log-fleet-config.txt';
78-
if (file_exists($logFile)) {
79-
echo "Dumping log preview:\n";
80-
$handle = fopen($logFile, 'r');
81-
if ($handle) {
82-
$lineCount = 0;
83-
while (!feof($handle) && $lineCount < 10000) {
84-
echo fgets($handle);
85-
$lineCount++;
86-
}
87-
fclose($handle);
88-
}
89-
} else {
90-
echo "Log file does not exist\n";
91-
}
92-
}
93-
9471
?>
9572
--EXPECT--
9673
DD_SERVICE: service_from_fleet_config

tests/ext/library_config/fleet_config_overloads_env.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ echo 'DD_ENV: '.dd_trace_env_config("DD_ENV")."\n";
2323
// System INI
2424
echo 'DD_DYNAMIC_INSTRUMENTATION_ENABLED: '.to_str(dd_trace_env_config("DD_DYNAMIC_INSTRUMENTATION_ENABLED"))."\n";
2525

26+
dd_trace_internal_fn("finalize_telemetry");
27+
2628
?>
2729
--EXPECT--
2830
DD_SERVICE: service_from_fleet_config

tests/ext/library_config/local_config.phpt

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ copy(__DIR__.'/local_config.yaml', '/tmp/test_c_local_config.yaml');
1818
_DD_TEST_LIBRARY_CONFIG_FLEET_FILE=/foo
1919
_DD_TEST_LIBRARY_CONFIG_LOCAL_FILE=/tmp/test_c_local_config.yaml
2020
DD_TRACE_SPANS_LIMIT=42
21-
DD_TRACE_DEBUG=1
22-
DD_TRACE_LOG_FILE=/tmp/log-local-config.txt
2321
--INI--
2422
datadog.trace.agent_url="file://{PWD}/local-config-telemetry.out"
2523
--FILE--
@@ -70,26 +68,6 @@ for ($i = 0; $i < 100; ++$i) {
7068
}
7169
}
7270

73-
if (!file_exists(__DIR__ . '/local-config-telemetry.out')) {
74-
echo "Telemetry file not found\n";
75-
76-
$logFile = '/tmp/log-local-config.txt';
77-
if (file_exists($logFile)) {
78-
echo "Dumping log preview:\n";
79-
$handle = fopen($logFile, 'r');
80-
if ($handle) {
81-
$lineCount = 0;
82-
while (!feof($handle) && $lineCount < 10000) {
83-
echo fgets($handle);
84-
$lineCount++;
85-
}
86-
fclose($handle);
87-
}
88-
} else {
89-
echo "Log file does not exist\n";
90-
}
91-
}
92-
9371
?>
9472
--EXPECT--
9573
DD_SERVICE: service_from_local_config

tests/ext/library_config/local_config_does_not_overload_env.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ echo 'DD_ENV: '.dd_trace_env_config("DD_ENV")."\n";
2323
// System INI
2424
echo 'DD_DYNAMIC_INSTRUMENTATION_ENABLED: '.to_str(dd_trace_env_config("DD_DYNAMIC_INSTRUMENTATION_ENABLED"))."\n";
2525

26+
dd_trace_internal_fn("finalize_telemetry");
27+
2628
?>
2729
--EXPECT--
2830
DD_SERVICE: service_from_env

0 commit comments

Comments
 (0)