Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Poor trace data output #501

Open
BesedinSasha opened this issue Jul 8, 2022 · 7 comments
Open

Poor trace data output #501

BesedinSasha opened this issue Jul 8, 2022 · 7 comments
Labels

Comments

@BesedinSasha
Copy link

BesedinSasha commented Jul 8, 2022

There are not detailed traces in Skywalking UI even if I make curl calls or execute PDO statements. How do I use tracing in this PHP modules? Can this sdk send enough data to collector for proper topology map? Is there any documentation? Could you provide some examples? As I see, in tests curl and PDO execution is commented out. So I have a doubt with them. Thank you.

image

SDK version 5.0.1 (compiled from source in docker PHP 8.1.1 alpine image)

/app # php -i | grep skywalking
/usr/local/etc/php/conf.d/ext-skywalking.ini
skywalking
skywalking.curl_response_enable => On => On
skywalking.enable => On => On
skywalking.error_handler_enable => Off => Off
skywalking.grpc_address => oap:11800 => oap:11800
skywalking.grpc_tls_enable => Off => Off
skywalking.grpc_tls_pem_cert_chain => no value => no value
skywalking.grpc_tls_pem_private_key => no value => no value
skywalking.grpc_tls_pem_root_certs => no value => no value
skywalking.log_level => debug => debug
skywalking.log_path => /tmp/skywalking-php.log => /tmp/skywalking-php.log
skywalking.mq_max_message_length => 20480 => 20480
skywalking.mq_unique => 0 => 0
skywalking.oap_authentication => no value => no value
skywalking.oap_cross_process_protocol => 3.0 => 3.0
skywalking.oap_version => 9.0.0 => 9.0.0
skywalking.sample_n_per_3_secs => -1 => -1
skywalking.service => app-a => app-a
skywalking.service_instance => no value => no value

@BesedinSasha
Copy link
Author

@heyanlong any suggestions?

@heyanlong
Copy link
Member

@BesedinSasha tail the /tmp/skywalking-php.log then check trace logs

@heyanlong
Copy link
Member

Or upload skywalking-php.log to this thread

@BesedinSasha
Copy link
Author

@heyanlong Here my logs from my demo symfony app. There are couple of database queries, but they are not visible in trace.

image

skywalking-php.log

@heyanlong
Copy link
Member

Does /uk/login have HTTP requests with cURL?

@BesedinSasha
Copy link
Author

@heyanlong In this case no

@heyanlong
Copy link
Member

Must be included to record.
e.g.

// router("/")
public function indexAction() {
    $httpClient->get("https://www.example.com/try");
    mysql_query("select * from example ...");
    return [];
}

The trace like

/
HTTP - PHP
    /try
    HTTP - PHP
 Database - MySQL

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants