diff --git a/ext/configuration.h b/ext/configuration.h index e7a0230d29..b16d98cc67 100644 --- a/ext/configuration.h +++ b/ext/configuration.h @@ -127,7 +127,7 @@ enum ddtrace_sampling_rules_format { CONFIG(INT, DD_TRACE_RATE_LIMIT, "0", .ini_change = zai_config_system_ini_change) \ CALIAS(DOUBLE, DD_TRACE_SAMPLE_RATE, "-1", CALIASES("DD_SAMPLING_RATE")) \ CONFIG(JSON, DD_TRACE_SAMPLING_RULES, "[]") \ - CONFIG(CUSTOM(INT), DD_TRACE_SAMPLING_RULES_FORMAT, "regex", .parser = dd_parse_sampling_rules_format) \ + CONFIG(CUSTOM(INT), DD_TRACE_SAMPLING_RULES_FORMAT, "glob", .parser = dd_parse_sampling_rules_format) \ CONFIG(JSON, DD_SPAN_SAMPLING_RULES, "[]") \ CONFIG(STRING, DD_SPAN_SAMPLING_RULES_FILE, "", .ini_change = ddtrace_alter_sampling_rules_file_config) \ CONFIG(SET_LOWERCASE, DD_TRACE_HEADER_TAGS, "") \ diff --git a/tests/ext/priority_sampling/005-rule-name.phpt b/tests/ext/priority_sampling/005-rule-name.phpt index 7b749e870c..0f50d125b7 100644 --- a/tests/ext/priority_sampling/005-rule-name.phpt +++ b/tests/ext/priority_sampling/005-rule-name.phpt @@ -3,6 +3,7 @@ priority_sampling rule with name match --ENV-- DD_TRACE_SAMPLING_RULES=[{"sample_rate": 0.7, "name": "bar"},{"sample_rate": 0.3, "name": "foo"}] DD_TRACE_GENERATE_ROOT_SPAN=1 +DD_TRACE_SAMPLING_RULES_FORMAT=regex --FILE--