Add script, style, image HTTP requests to otel traces

Created on 28 July 2023, over 1 year ago
Updated 3 October 2023, about 1 year ago

Problem/Motivation

Postponed on Add OpenTelemetry Application Performance Monitoring to core performance tests Fixed .

We can probably do someting to measure page interactions, which would help core/sites improve https://web.dev/inp/ and https://web.dev/fid/

PerformanceTestBase already captures script and style requests, but these aren't added to opentelemetry traces yet.

We should be able to create a span for each http request, at least with start and finish, but if the performance log also provides it 'queueing' time etc., we can add the filename, file size etc. as attributes.

This would allow you to see a waterfall of requests in traces, which would semi-automate some of the testing I did in #3323850-17: Set theme logo fetchpriority to high for example.

I don't think we can necessarily add any of this to graphs or test assertions, it'd probably just be visibile when you click through to a trace so it's easier to see what's happening without having to recreate the test locally - but that in itself would be useful.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Feature request
Status

Active

Version

11.0 🔥

Component
PHPUnit 

Last updated about 23 hours ago

Created by

🇬🇧United Kingdom catch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024