Plugin to create spans for cached pages

Created on 28 November 2024, 7 months ago

Problem/Motivation

For pages, delivered directly from the page cache, no Kernel events are called, so all services do not start at all.
This leads to missing traces and spans for cached responses at all.

Probably we can add a new class that implements 'HttpKernelInterface' and register 'http_middleware' with a higher priority than 200 - it should work.

But needs implementation and testing.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

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

Comments & Activities

  • Issue created by @murz
  • 🇨🇭Switzerland berdir Switzerland

    Should probably also consider the cost. anonymous page responses should be as fast as possible, you should not use config that early, as that will cause a considerable performance degradation.

    A possibly would be to register the service dynamically and inject the necessary configuration directly into it, with an option to to enable it.

Production build 0.71.5 2024