From e50a2f3355e43e785902149a8dcc8bb491c4b970 Mon Sep 17 00:00:00 2001 From: heyanlong Date: Fri, 12 Jul 2019 13:42:23 +0800 Subject: [PATCH] predis --- skywalking.c | 1 + 1 file changed, 1 insertion(+) diff --git a/skywalking.c b/skywalking.c index 1397b9b..c06e2a8 100644 --- a/skywalking.c +++ b/skywalking.c @@ -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) { -- GitLab