You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ke...@apache.org on 2020/07/20 15:45:52 UTC
[skywalking-python] branch master updated: Update Redis plugin
Component Id (#45)
This is an automated email from the ASF dual-hosted git repository.
kezhenxu94 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-python.git
The following commit(s) were added to refs/heads/master by this push:
new 7420f10 Update Redis plugin Component Id (#45)
7420f10 is described below
commit 7420f1047fde5b08b575c65ef8b9d83d66c7cf2e
Author: huawei <al...@gmail.com>
AuthorDate: Mon Jul 20 23:45:41 2020 +0800
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(-)
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