Skip to content

Commit

Permalink
Fix stats computation of background sender
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 Jan 10, 2025
1 parent 9607a5f commit d0d5899
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/coms.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,9 @@ static struct curl_slist *dd_agent_headers_alloc(void) {
dd_append_header(&list, "Datadog-Meta-Lang-Interpreter", sapi_module.name);
dd_append_header(&list, "Datadog-Meta-Lang-Version", ZSTR_VAL(ddtrace_php_version));
dd_append_header(&list, "Datadog-Meta-Tracer-Version", PHP_DDTRACE_VERSION);
dd_append_header(&list, "Datadog-Client-Computed-Stats", get_global_DD_EXPERIMENTAL_APPSEC_STANDALONE_ENABLED() ? "true" : "false");
if (get_global_DD_EXPERIMENTAL_APPSEC_STANDALONE_ENABLED()) {
dd_append_header(&list, "Datadog-Client-Computed-Stats", "true");
}

ddog_CharSlice id = ddtrace_get_container_id();
if (id.len) {
Expand Down

0 comments on commit d0d5899

Please sign in to comment.