Home / Companies / Datadog / Blog / Post Details
Content Deep Dive

PHP 8: Observability baked right in

Blog post from Datadog

Post Details
Company
Date Published
Author
Sammy Powers, Levi Morrison
Word Count
1,918
Company Posts That Month
20
Language
English
Hacker News Points
-
Post removed?
No
Summary

The Zend Engine's function-call-interception hooks have been a challenge for observability, leading to performance issues and crashes. The new observer API in PHP 8 addresses these concerns by providing a more efficient and reliable way to instrument functions and methods. It introduces opcode specialization, allowing extensions to target specific functions of interest without notifying every extension for every function call. The observer API also supports targeting userland functions and is compatible with the new just-in-time compiler (JIT) added in PHP 8. Additionally, it eliminates the need for forwarding along hooks to neighboring extensions, making it "noisy neighbor resistant." This allows multiple tracers, profilers, and debuggers to run alongside each other without crashes. The future of observability in PHP now has a single point of reference under the `ZEND_OBSERVER` name, enabling further advancements in this area.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Observability 24 723 119 39 +44%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.