Skip to content

Batch endpoint collection & remove Wordpress Endpoint collection#3764

Merged
bwoebi merged 5 commits intomasterfrom
bob/batch-endpoint
Apr 3, 2026
Merged

Batch endpoint collection & remove Wordpress Endpoint collection#3764
bwoebi merged 5 commits intomasterfrom
bob/batch-endpoint

Conversation

@bwoebi
Copy link
Copy Markdown
Collaborator

@bwoebi bwoebi commented Apr 1, 2026

Endpoint collection is also called multiple times in symfony in close succession (before the sidecar actually is done processing).

This leads to quite a bit of overhead.

@bwoebi bwoebi requested review from a team as code owners April 1, 2026 14:55
@datadog-datadog-prod-us1-2
Copy link
Copy Markdown

datadog-datadog-prod-us1-2 bot commented Apr 1, 2026

⚠️ Tests

Fix all issues with BitsAI or with Cursor

⚠️ Warnings

🧪 9 Tests failed

ext/openssl/tests/bug74796.phpt (Bug #74796: TLS encryption fails behind HTTP proxy) from php.ext.openssl.tests   View in Datadog   (Fix with Cursor)
001- string(19) "Hello from server 0"
002- NULL
003- string(19) "Hello from server 1"
004- NULL
005- string(19) "Hello from server 2"
006- NULL
007- cs.php.net
008- uk.php.net
009- us.php.net
002+ error:0A000086:SSL routines::certificate verify failed in /usr/local/src/php/ext/openssl/tests/ServerClientTestCase.inc(191) : eval()'d code on line 15
...
ext/openssl/tests/sni_server_key_cert.phpt (sni_server with separate pk and cert) from php.ext.openssl.tests   View in Datadog   (Fix with Cursor)
001- string(%d) "cs.php.net"
002- string(%d) "uk.php.net"
003- string(%d) "us.php.net"
002+ error:0A000086:SSL routines::certificate verify failed in /usr/local/src/php/ext/openssl/tests/ServerClientTestCase.inc(191) : eval()'d code on line 9
003+ 
005+ 
007+ 
009+ 
010+ Deprecated: openssl_x509_parse(): Passing null to parameter #1 ($certificate) of type OpenSSLCertificate|string is deprecated in /usr/local/src/php/ext/openssl/tests/ServerClientTestCase.inc(191) : eval()'d code on line 11
011+ 
...
ext/openssl/tests/sni_server.phpt (sni_server) from php.ext.openssl.tests   View in Datadog   (Fix with Cursor)
001- string(%d) "cs.php.net"
002- string(%d) "uk.php.net"
003- string(%d) "us.php.net"
002+ error:0A000086:SSL routines::certificate verify failed in /usr/local/src/php/ext/openssl/tests/ServerClientTestCase.inc(191) : eval()'d code on line 9
003+ 
005+ 
007+ 
009+ 
010+ Deprecated: openssl_x509_parse(): Passing null to parameter #1 ($certificate) of type OpenSSLCertificate|string is deprecated in /usr/local/src/php/ext/openssl/tests/ServerClientTestCase.inc(191) : eval()'d code on line 11
011+ 
...
View all

ℹ️ Info

No other issues found (see more)

❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 60.65% (+0.01%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 5cf8ebb | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback!

Copy link
Copy Markdown
Contributor

@cataphract cataphract left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, I'd just add a comment explaining ddtrace_telemetry_finalize doesn't suffice. Also arginfo seems to have been generated with a different version of the script. I suppose that should be pinned

RETURN_FALSE;
}

if (!ddtrace_sidecar || !ddtrace_sidecar_instance_id || !DDTRACE_G(sidecar_queue_id)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we also add !DDTRACE_G(telemetry_buffer) in this condition as well for consistency ?

@bwoebi bwoebi force-pushed the bob/batch-endpoint branch 5 times, most recently from 6b7aaa2 to 9b92ee4 Compare April 3, 2026 14:58
bwoebi and others added 5 commits April 3, 2026 18:06
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
…ge on wordpress

Batch ack sending too

Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
The sidecar's write_shm_file() serializes buffered_integrations as
HashSet<Integration>, but the PHP-side reader in components-rs
deserialized it as HashSet<String>. This mismatch has existed since
the SHM cache was introduced in 91222ad ("feat: reduce telemetry
sent", #3316), but was latent: config_sent was set true before any
integrations appeared in SHM, and integration dedup (the only other
consumer) was silently broken with the sidecar deduplicating
server-side as a fallback.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
@bwoebi bwoebi force-pushed the bob/batch-endpoint branch from 9b92ee4 to 5cf8ebb Compare April 3, 2026 16:22
@bwoebi bwoebi merged commit 96e9428 into master Apr 3, 2026
2080 of 2098 checks passed
@bwoebi bwoebi deleted the bob/batch-endpoint branch April 3, 2026 17:29
@github-actions github-actions bot added this to the 1.18.0 milestone Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants