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

Commit

Permalink
predis
Browse files Browse the repository at this point in the history
  • Loading branch information
heyanlong committed Jul 12, 2019
1 parent 114c418 commit e50a2f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions skywalking.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ ZEND_API void sky_execute_ex(zend_execute_data *execute_data) {
array_init(&tags);

if (strcmp(class_name, "Predis\\Client") == 0 && strcmp(function_name, "__call") == 0) {
add_assoc_string(&tags, "db.type", "redis");
uint32_t arg_count = ZEND_CALL_NUM_ARGS(execute_data);
zval *fname = ZEND_CALL_ARG(execute_data, 1);
for (int i = 1; i < arg_count + 1; ++i) {
Expand Down

0 comments on commit e50a2f3

Please sign in to comment.