At the Hackathon, @TK-999 wrote a proof-of-concept patch integrating Mediawiki with the OTel library, including creation of Spans for database queries. We're requesting a few passes of code review on this patch, beginning with any architectural issues and an estimate of how much more work is needed.
Some docs on what features & extra data you can get by linking against instrumentation: https://opentelemetry.io/docs/concepts/instrumentation/libraries/
Docs on the PHP library: https://opentelemetry.io/docs/instrumentation/php/