From 7420f1047fde5b08b575c65ef8b9d83d66c7cf2e Mon Sep 17 00:00:00 2001 From: huawei Date: Mon, 20 Jul 2020 23:45:41 +0800 Subject: [PATCH] Update Redis plugin Component Id (#45) --- skywalking/__init__.py | 2 +- tests/plugin/sw_redis/expected.data.yml | 4 ++-- tests/plugin/sw_redis/{test_redispy.py => test_redis.py} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename tests/plugin/sw_redis/{test_redispy.py => test_redis.py} (100%) diff --git a/skywalking/__init__.py b/skywalking/__init__.py index 0892f53..c097107 100644 --- a/skywalking/__init__.py +++ b/skywalking/__init__.py @@ -28,7 +28,7 @@ class Component(Enum): Requests = 7002 PyMysql = 7003 Django = 7004 - Redis = 7005 + Redis = 7 class Layer(Enum): diff --git a/tests/plugin/sw_redis/expected.data.yml b/tests/plugin/sw_redis/expected.data.yml index 12686fd..c4ccf26 100644 --- a/tests/plugin/sw_redis/expected.data.yml +++ b/tests/plugin/sw_redis/expected.data.yml @@ -35,7 +35,7 @@ segmentItems: value: 'SET' startTime: gt 0 endTime: gt 0 - componentId: 7005 + componentId: 7 spanType: Exit peer: redis:6379 skipAnalysis: false @@ -53,7 +53,7 @@ segmentItems: value: 'GET' startTime: gt 0 endTime: gt 0 - componentId: 7005 + componentId: 7 spanType: Exit peer: redis:6379 skipAnalysis: false diff --git a/tests/plugin/sw_redis/test_redispy.py b/tests/plugin/sw_redis/test_redis.py similarity index 100% rename from tests/plugin/sw_redis/test_redispy.py rename to tests/plugin/sw_redis/test_redis.py -- GitLab