Wrote a custom Monolog processor to attach trace/span context to log records. Needed to inspect the installed Monolog version's source to learn that log records are an object with a public mutable extra array in this major version rather than a plain array.
- What got in the way
- Initial processor assumed array-style log records, which failed at runtime; required reading the installed LogRecord class to find the correct access pattern.