-
Notifications
You must be signed in to change notification settings - Fork 74
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
I need some help #596
Comments
it's an old setting, deprecated now. (agent information can be set at collector-agent side) |
how setting? |
Please tell me how to set up the collector-agent. |
collector-agenthttps://github.com/pinpoint-apm/pinpoint-c-agent/blob/dev/DOC/collector-agent/readme.md php agent
|
what? |
.bash_profile export PP_COLLECTOR_AGENT_SPAN_IP=127.0.0.1 php.ini [pinpoint_php] [error_log] common.php ##############PINPOINT########################### Is it different? It is not registered on the web and cannot be connected to pinpoint-collector. |
Please attach the output of php agent. https://github.com/pinpoint-apm/pinpoint-c-agent/blob/dev/testapps/PHP/php.ini Does your pinpoint-collector locate at "PP_COLLECTOR_AGENT_SPAN_IP=127.0.0.1" ? |
It is installed locally. |
collector-agent / pinpoint-collector is installed locally. |
it looks collector-agent woks fine. |
collector.log [2024-04-15 17:10:43.110591367] INFO client:127.0.0.1:50806 is online why isn't registered on the web? |
Enable "log_errors= On " and share us the logging of your php application. pinpoint-c-agent/testapps/PHP/php.ini Line 9 in 1bdfc70
|
no logging |
collector.log [2024-04-15 17:51:14.645184858] INFO client:10.0.0.167:60632 is online |
Try the latest collector-agent . |
#define PHP_PINPOINT_PHP_VERSION "0.2.1" |
please update the collector-agent |
don't go build [pin@Zenius collector-agent]$ go build |
make error [pin@Zenius collector-agent]$ make |
you missed the submodule
|
please check the dockerfile of collector-agent Script for compile collector-agent
|
what's mean? i'm not use docker. |
please check this #596 (comment) |
I want to install it as server, not as docker CentOS Linux release 8.5.2111 |
my project |
As c-level function does not support yet, I will re-implement all plugins to support c-level in future.
|
I don't know how to create a custom plugin. |
I find your project does not follow the
|
I tag this issue into next major version. |
In addition to db information, I also want to display call-tree (trace) information and mem information. |
you can use Supported list: |
How should I apply it? |
hmm, I find your project use try use PDO, or mysqli Ref
|
I don't know much about php. |
OK,
|
I deleted the DB and installed mariadb 10.11 using yum. However, DB information and trace still do not appear. |
Which db extension you used ? PDO or mysqli ? I will post an example for you. |
- example for php > hopes to help pinpoint-apm#596
- example for php > hopes to help pinpoint-apm#596
- example for php > hopes to help pinpoint-apm#596
- example for php > hopes to help #596
I created an example for you. It reveals how to use pinpoint-php pinpoint-c-agent/testapps/SimplePHP/run.php Lines 61 to 66 in 2373d7b
|
sorry. My reply was late due to a business trip. [root@Zenius ext]# pwd i used mysqli |
Please check the exmple in https://github.com/pinpoint-apm/pinpoint-c-agent/blob/dev/testapps/SimplePHP/run.php |
[30-Apr-2024 13:03:57 Asia/Seoul] PHP Warning: Use of undefined constant PLUGINS_DIR - assumed 'PLUGINS_DIR' (this will throw an Error in a future version of PHP) in /var/www/html/vendor/pinpoint-apm/pinpoint-php-aop/lib/Pinpoint/Common/PinpointDriver.php on line 37 |
I got your problem, try this version: "pinpoint-apm/pinpoint-php-aop": "v2.2.0",
|
[2024-05-07 14:04:27.805790368] INFO client:10.0.0.167:45674 is online |
Did you foget this SimplePHP\RequestPlugin , it looks does not loading. |
Hello,
Reference
|
##############PINPOINT###########################
require_once DIR.'/../vendor/autoload.php';
define('APPLICATION_NAME','php');
define('APPLICATION_ID','2');
define('AOP_CACHE_DIR',DIR.'/../Cache/');
define('PLUGINS_DIR',DIR.'/../Plugins/');
define('PINPOINT_USE_CACHE','YES');
require_once DIR.'/../vendor/pinpoint-apm/pinpoint-php-aop/auto_pinpointed.php';
#################################################
collector.log
[2024-04-15 13:56:50.024840042] INFO client:10.0.0.167:35716 is online
[2024-04-15 13:56:50.024928028] INFO send handshake msg:{"appid":"no","appname":"no","time":"1713141240"}
why "appid":"no","appname":"no ?
The text was updated successfully, but these errors were encountered: