basilicom-pimcore-plugin/tideways
Composer 安装命令:
composer require basilicom-pimcore-plugin/tideways
包简介
Configure and use the Tideways Profiler with Pimcore
README 文档
README
Developer info: Pimcore at basilicom
Synopsis
This Pimcore http://www.pimcore.org plugin simplifies using and configuring the Tideways Profiler.
Code Example / Method of Operation
If installed and enabled, the following Tideways properties are configured via the website/var/config/tideways.xml file:
- \Tideways\Profiler::detectFramework(\Tideways\Profiler::FRAMEWORK_ZEND_FRAMEWORK1);
- \Tideways\Profiler::start($apiKey, $sampleRate);
- \Tideways\Profiler::watch($watcher); // all configured watchers from the XML file
Motivation
Tideways works "out of the box" with ZF1 Framework detection. In order to configure certain aspects - mainly custom span timeline events - additional code is needed. This plugin simplifies this process by adding a layer in between the Tideways API calls and an easy XML based configuration file accessable via the Pimcore Plugin management system.
Installation
Install the Tideways system on your server, see: https://tideways.io/profiler/docs/getting-started/installation
Make sure you disable the Tideways auto-start in your php.ini: tideways.auto_start=No (The plugin takes care of that.)
Add "basilicom-pimcore-plugin/tideways" as a requirement to the composer.json in the toplevel directory of your Pimcore installation.
Example:
{
"require": {
"basilicom-pimcore-plugin/tideways": ">=1.0.0"
}
}
Install the plugin via the Pimcore Extension Manager. Press the "Configure" button of the Tideways plugin from within the Extension Manager and set the "apiKey" property accordingly.
In order to transmit info to the Tideways servers, set the "enabled" property to "1", too.
Limit the sample rate by changing the "sampleRate".
If you want to profile/trace backend requests, too: Set the "excludeBackend" property in the xml file to "0".
If you want to profile/trace CLI requests, too: Set the "excludeCli" property in the xml file to "0" (this is needed for tracing maintenance.php runs).
You can add additional method watchers - take a look at the example section in the config file.
Optionally, upload the sample package config file "tideways-pimcore.xml" via the Tideways UI for custom package configuration - to be configured here:
https://app.tideways.io/o/basilicom/[TIDEWAYS-APPLICATION-NAME]/settings/packages
See: https://github.com/QafooLabs/profiler-packages/blob/master/package.xsd
API Reference
The following static methods are provided as a wrapper for the original Tideways functions:
- \Tideways\Plugin::setTransactionName(string $transactionName)
- \Tideways\Plugin::setCustomVariable(string $variable, mixed $value)
- \Tideways\Plugin::createEvent(string $eventName, string $environment='production', string $type='release')
Tests
- none
Todo
- Implement exception handler tracing
Contributors
- Tim Jagodzinski tim.jagodzinski@basilicom.de
- Christoph Luehr christoph.luehr@basilicom.de
License
- BSD-3-Clause
basilicom-pimcore-plugin/tideways 适用场景与选型建议
basilicom-pimcore-plugin/tideways 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.71k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 06 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「performance」 「plugin」 「trace」 「profiler」 「pimcore」 「tideways」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 basilicom-pimcore-plugin/tideways 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 basilicom-pimcore-plugin/tideways 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 basilicom-pimcore-plugin/tideways 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
g4 application profiler package
CSS/Javascript Minificator, Compressor and Concatenator for TYPO3 - highly configurable frontend asset optimization for CSS/JS merging, minification and compression with optional body parsing, async/defer loading, inline output, data-ignore exclusions, SRI integrity validation/calculation, external
WordPress mu-plugin to remove jQuery Migrate from the list of jQuery dependencies and to allow jQuery to enqueue before </body> instead of in the <head>.
Create link to static resources with cache-breaking segment based on md5 of the file
Development and debugging tools for Recoil applications.
统计信息
- 总下载量: 2.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 32
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2015-06-18