-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fos HTTP Cache show as index.php #206
Comments
Sure. Have a look at the NamingStrategy section. https://github.com/ekino/EkinoNewRelicBundle#transaction-naming-strategies |
but why my cache is see as index.php instead of routename? here is my config. did I miss anything?
|
from what I see, the RequestListener is never trigger on cached request. so the transaction name cannot be set. |
Hmm.. are you using SymfonyCache? If yes, Symfony is probably returning the cached response before calling the NewrelicBundle's code. That would explain why the transaction is not defined. |
Yeah. That’s what I found. I am using FoshttpCache bundle. Look like I need a special subscriber in my AppCache setup. |
Thinking about your issue, IMHO, this is a good thing that the I think you may try to set a class CacheKernel extends HttpCache
{
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) {
newrelic_name_transaction('cached');
// or with NR objects: (new AdaptiveInteractor(new NewRelicInteractor(), new BlackholeInteractor))->setTransactionName('cached');
return parent::handle($request, $type, $catch);
}
} Could you give a try and tell us if it works for you? We'll add an entry in the documentation |
already try to handle the transaction name in the handle method, it's not applied. |
I have problem to see my cached request to display in new relic. they all show as index.php
is there a way to specially name it cached_<routeName>?
The text was updated successfully, but these errors were encountered: