Skip to content

Commit

Permalink
Let standard limiters to work when standalone not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
estringana committed Dec 17, 2024
1 parent 0926c77 commit fc0d9d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/asm_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ DDTRACE_PUBLIC void ddtrace_emit_asm_event() {
ZVAL_STR(&_1_zval, _1_zstr);
ddtrace_add_propagated_tag(_dd_tag_p_appsec_zstr, &_1_zval);

ddtrace_set_priority_sampling_on_root(PRIORITY_SAMPLING_USER_KEEP, DD_MECHANISM_ASM);
if (get_DD_EXPERIMENTAL_APPSEC_STANDALONE_ENABLED()) {
ddtrace_set_priority_sampling_on_root(PRIORITY_SAMPLING_USER_KEEP, DD_MECHANISM_ASM);
}
}

PHP_FUNCTION(DDTrace_Testing_emit_asm_event) {
Expand Down

0 comments on commit fc0d9d3

Please sign in to comment.