This is an automated email from the ASF dual-hosted git repository.
spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 291824f5f fix: adjust the execution priority of request-id to fix
opentelemetry has no request id (#7281)
291824f5f is described below
commit 291824f5f320642da7fafed00f78a5da6e1e2bd9
Author: Jager <[email protected]>
AuthorDate: Wed Jun 22 18:04:04 2022 +0800
fix: adjust the execution priority of request-id to fix opentelemetry has
no request id (#7281)
Co-authored-by: Jagerzhang <[email protected]>
---
apisix/plugins/request-id.lua | 2 +-
conf/config-default.yaml | 2 +-
t/admin/plugins.t | 2 +-
t/debug/debug-mode.t | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/apisix/plugins/request-id.lua b/apisix/plugins/request-id.lua
index 6f1ab7b0c..353bd3f83 100644
--- a/apisix/plugins/request-id.lua
+++ b/apisix/plugins/request-id.lua
@@ -64,7 +64,7 @@ local attr_schema = {
local _M = {
version = 0.1,
- priority = 11010,
+ priority = 12015,
name = plugin_name,
schema = schema
}
diff --git a/conf/config-default.yaml b/conf/config-default.yaml
index c33e4a731..2ed8c7e43 100644
--- a/conf/config-default.yaml
+++ b/conf/config-default.yaml
@@ -335,11 +335,11 @@ plugins: # plugin list (sorted
by priority)
- real-ip # priority: 23000
- client-control # priority: 22000
- proxy-control # priority: 21990
+ - request-id # priority: 12015
- zipkin # priority: 12011
#- skywalking # priority: 12010
#- opentelemetry # priority: 12009
- ext-plugin-pre-req # priority: 12000
- - request-id # priority: 11010
- fault-injection # priority: 11000
- mocking # priority: 10900
- serverless-pre-function # priority: 10000
diff --git a/t/admin/plugins.t b/t/admin/plugins.t
index 2bfb5fee3..c370c3c51 100644
--- a/t/admin/plugins.t
+++ b/t/admin/plugins.t
@@ -64,9 +64,9 @@ __DATA__
real-ip
client-control
proxy-control
+request-id
zipkin
ext-plugin-pre-req
-request-id
fault-injection
mocking
serverless-pre-function
diff --git a/t/debug/debug-mode.t b/t/debug/debug-mode.t
index d2f629d8e..0fe20a8bb 100644
--- a/t/debug/debug-mode.t
+++ b/t/debug/debug-mode.t
@@ -43,9 +43,9 @@ done
--- error_log
loaded plugin and sort by priority: 23000 name: real-ip
loaded plugin and sort by priority: 22000 name: client-control
+loaded plugin and sort by priority: 12015 name: request-id
loaded plugin and sort by priority: 12011 name: zipkin
loaded plugin and sort by priority: 12000 name: ext-plugin-pre-req
-loaded plugin and sort by priority: 11010 name: request-id
loaded plugin and sort by priority: 11000 name: fault-injection
loaded plugin and sort by priority: 10000 name: serverless-pre-function
loaded plugin and sort by priority: 4000 name: cors