Skip to content

Commit

Permalink
Manually set sidecar config to false
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
  • Loading branch information
bwoebi committed May 30, 2024
1 parent f7c26ee commit b5e4ec2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ext/ddtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ void disable_sidecar_sending(void){
zend_alter_ini_entry(zai_config_memoized_entries[DDTRACE_CONFIG_DD_TRACE_SIDECAR_TRACE_SENDER].ini_entries[0]->name, zero,
ZEND_INI_SYSTEM, ZEND_INI_STAGE_RUNTIME);
zend_string_release(zero);
ZVAL_FALSE(&zai_config_memoized_entries[DDTRACE_CONFIG_DD_TRACE_SIDECAR_TRACE_SENDER].decoded_value);
}
#endif

Expand Down
2 changes: 2 additions & 0 deletions tests/ext/dd_trace_send_traces_via_thread_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
background sender happy path
--SKIPIF--
<?php if (strncasecmp(PHP_OS, "WIN", 3) == 0) die('skip: There is no background sender on Windows'); ?>
--INI--
datadog.trace.sidecar_trace_sender=0
--FILE--
<?php

Expand Down

0 comments on commit b5e4ec2

Please sign in to comment.