Add messaging send telemetry#130
Conversation
Greptile SummaryThis PR introduces library-level telemetry to
Confidence Score: 5/5The change is safe to merge. All existing adapters are unaffected at runtime (telemetry defaults to a no-op), the recording logic is covered by focused tests, and GEOSMS origin propagation works correctly. The core recording path in Adapter derives counts from the results array, not the legacy deliveredTo field, which is a genuine correctness improvement. GEOSMS telemetry propagation is tested end-to-end. No behavioural changes exist for callers that don't opt in to telemetry. GEOSMS.php — the constructor call to setTelemetry on the default adapter is a minor footgun worth a follow-up doc-comment or removal. Important Files Changed
Reviews (3): Last reviewed commit: "Require origin metadata on messages" | Re-trigger Greptile |
What does this PR do?
Adds library-level telemetry for message sends.
utopia-php/telemetryand initializes adapters withNoTelemetryby defaultmessaging.sendcounts fromAdapter::send()withtype,provider, optionalorigin, andresultattributesGEOSMSsplits SMS sends by local adapterTest Plan
./vendor/bin/phpunit tests/Messaging/Adapter/TelemetryTest.phpcomposer lintcomposer analyseRelated PRs and Issues
Have you read the Contributing Guidelines on issues?
Yes.