intaro / pinba-bundle Goto Github PK
View Code? Open in Web Editor NEWSymfony bundle for pinba timers sending with time of operations execution for Doctrine, Twig and Memcache
License: MIT License
Symfony bundle for pinba timers sending with time of operations execution for Doctrine, Twig and Memcache
License: MIT License
в процессе конфигурации столкнулся с проблемой.
например в нашем проекте настройки dbal находятся в файле config.yml и он уже подключается в config_prod.yml и config_dev.yml
добавление параметров для dbal в config_prod.yml в таком случае не работает.
потом обнаружилось что определить logging: true, для конфига с многими connections: нельзя сразу в секцию dbal: нужно определять для каждого connection: отдельно.
все это может казаться очевидным для тех кто плотно работал с doctrine, но у меня заняло какое то время на осмысление того почему не работает логирование запросов в пинбу.
Привет.
Очень интересный бандл, пользуемся пинбой около года, но вот так детально замерять по подсистемам еще не пробовали. Получается что-то наподобие newrelic для бедных).
Укажите пожалуйста в документации, какой оверхед на продакшене? rps с бандлом и без.
Hi!
I'm using Symfony 3.x as json-api without need for twig at all.
After installing this bundle i see error Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service "fos_rest.exception.twig_controller" has a dependency on a non-existent service "twig".
So, why? And how to disable this requirement? I don't need any rendering stuff from Pinba – only send "smart timers" to see queries, correct routes etc.
After some digging into, i just drop these lines and everything works good.
./vendor/intaro/pinba-bundle/Intaro/PinbaBundle/Resources/config/services.yml
:
services:
templating.engine.twig:
class: "%intaro_pinba.templating.engine.twig.class%"
public: false
arguments:
- "@twig"
- "@templating.name_parser"
- "@templating.locator"
- "@intaro_pinba.stopwatch"
Required fix in line 21 (remove one ` char):
before:
````json
after:
```json
It will be good to see timers from console commands, especially if project has many cronjobs.
But right now i see in ScriptNameConfigureListener.php:17
that cli is strictly denied. Why? Is there any hard problem or just waiting for implementation (no comments there)?
After installing Pinba on my server, in dashboard i see cli commands as "unknown"-host and only memory stuff – will be great to see doctrine there too like in regular requests. Maybe, setting pinba_script_name_set(gethostname())
will be informative enough?
It could allow dynamically turn on and off pinba when needed.
https://github.com/intaro/pinba-bundle/blob/master/EventListener/ScriptNameConfigureListener.php
+этот слушатель должен стартовать как можно раньше по идее.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.