Skip to content

Commit 31ca15c

Browse files
committed
merge process_tags into existing tests
1 parent bee5232 commit 31ca15c

3 files changed

Lines changed: 8 additions & 55 deletions

File tree

tests/ext/crashtracker_process_tags.phpt

Lines changed: 0 additions & 55 deletions
This file was deleted.

tests/ext/crashtracker_segfault.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ include __DIR__ . '/includes/skipif_no_dev_env.inc';
1313
DD_TRACE_LOG_LEVEL=0
1414
DD_AGENT_HOST=request-replayer
1515
DD_TRACE_AGENT_PORT=80
16+
DD_EXPERIMENTAL_PROPAGATE_PROCESS_TAGS_ENABLED=1
1617
--INI--
1718
datadog.trace.agent_test_session_token=tests/ext/crashtracker_segfault.phpt
1819
--FILE--
@@ -43,6 +44,8 @@ $rr->waitForRequest(function ($request) {
4344
continue;
4445
}
4546

47+
echo $json["application"]["process_tags"], PHP_EOL;
48+
4649
foreach ($json["payload"]["logs"] as $payload) {
4750
$payload["message"] = json_decode($payload["message"], true);
4851
if (!isset($payload["message"]["metadata"])) {
@@ -63,6 +66,7 @@ $rr->waitForRequest(function ($request) {
6366
});
6467
?>
6568
--EXPECTF--
69+
%Aentrypoint.name:standard_input_code,entrypoint.type:script,entrypoint.workdir:%s,runtime.sapi:cli
6670
%A{
6771
"message": {
6872
%A

tests/ext/crashtracker_segfault_windows.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ include __DIR__ . '/includes/skipif_no_dev_env.inc';
1414
DD_TRACE_LOG_LEVEL=0
1515
DD_AGENT_HOST=request-replayer
1616
DD_TRACE_AGENT_PORT=3188
17+
DD_EXPERIMENTAL_PROPAGATE_PROCESS_TAGS_ENABLED=1
1718
--INI--
1819
datadog.trace.agent_test_session_token=tests/ext/crashtracker_segfault_windows.phpt
1920
--FILE--
@@ -56,6 +57,8 @@ $rr->waitForRequest(function ($request) {
5657
continue;
5758
}
5859

60+
echo $json["application"]["process_tags"], PHP_EOL;
61+
5962
foreach ($json["payload"]["logs"] as $payload) {
6063
$payload["message"] = json_decode($payload["message"], true);
6164
if (!isset($payload["message"]["metadata"])) {
@@ -73,6 +76,7 @@ $rr->waitForRequest(function ($request) {
7376
});
7477
?>
7578
--EXPECTF--
79+
%Aentrypoint.name:standard_input_code,entrypoint.type:script,entrypoint.workdir:%s,runtime.sapi:cli
7680
%A{
7781
"message": {
7882
"data_schema_version": "1.2",

0 commit comments

Comments
 (0)