Skip to content

Commit 13d4688

Browse files
committed
Amend sampling rate
1 parent a845679 commit 13d4688

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: appsec/tests/extension/client_init_record_span_tags.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Array
107107
[metric_1] => 2
108108
[metric_2] => 10
109109
[_dd.appsec.enabled] => 1
110-
[_sampling_priority_v1] => 1
110+
[_sampling_priority_v1] => 2
111111
[php.compilation.total_time_ms] => %f
112112
[php.memory.peak_usage_bytes] => %f
113113
[php.memory.peak_real_usage_bytes] => %f

Diff for: appsec/tests/extension/rinit_record_span_tags.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Array
100100
[%s] => %d
101101
[rshutdown_metric] => 2.1
102102
[_dd.appsec.enabled] => 1
103-
[_sampling_priority_v1] => 1
103+
[_sampling_priority_v1] => 2
104104
[php.compilation.total_time_ms] => %f
105105
[php.memory.peak_usage_bytes] => %f
106106
[php.memory.peak_real_usage_bytes] => %f

Diff for: ext/asm_event.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ DDTRACE_PUBLIC void ddtrace_emit_asm_event() {
2424
ZVAL_STR(&_1_zval, _1_zstr);
2525
ddtrace_add_propagated_tag(_dd_tag_p_appsec_zstr, &_1_zval);
2626

27-
ddtrace_set_priority_sampling_on_root(PRIORITY_SAMPLING_AUTO_KEEP, DD_MECHANISM_ASM);
27+
ddtrace_set_priority_sampling_on_root(PRIORITY_SAMPLING_USER_KEEP, DD_MECHANISM_ASM);
2828
}
2929

3030
PHP_FUNCTION(DDTrace_Testing_emit_asm_event) {

Diff for: tests/ext/background-sender/agent_sampling-standalone-asm_02.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ echo "This call also has the same sample rate: {$get_sampling()}\n";
4747
?>
4848
--EXPECTF--
4949
[ddtrace] [info] Flushing trace of size 1 to send-queue for http://request-replayer:80
50-
First call it is used as heartbeat: 2
50+
First call it is used as heartbeat: 1
5151
[ddtrace] [info] Flushing trace of size 1 to send-queue for http://request-replayer:80
5252
This call has the same sample rate: 2
5353
[ddtrace] [info] Flushing trace of size 1 to send-queue for http://request-replayer:80

0 commit comments

Comments
 (0)