- Issue created by @moshe weitzman
I think these responses deserve special names as they are "unusual" responses that are very common. Here is some custom code from a project that doesnt use this fine module. If folks think this is useful, I can make a MR
private function getTransactionNameForResponse(Response $response) {
if ($response->headers->get(DynamicPageCacheSubscriber::HEADER) === 'HIT') {
return 'dynamic.cache.view';
}
if ($response->headers->has('X-Redirect-ID')) {
return 'redirect.redirect';
}
if ($response->headers->has('X-Drupal-Route-Normalizer')) {
return 'redirect.canonical';
}
}
Active
1.0
Code