Skip to content

Commit

Permalink
chore(plugins): increase priority of correlation_id to match EE
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgkew authored Oct 15, 2024
1 parent 9f6bc6b commit 9ae3638
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/kong/feat-correlation-id-order.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
message: |
Increased the priority order of the correlation id to 100001 from 1 so that the plugin can be used
with other plugins especially custom auth plugins.
type: feature
scope: Core
2 changes: 1 addition & 1 deletion kong/plugins/correlation-id/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ end
local CorrelationIdHandler = {}


CorrelationIdHandler.PRIORITY = 1
CorrelationIdHandler.PRIORITY = 100001
CorrelationIdHandler.VERSION = kong_meta.version


Expand Down
2 changes: 1 addition & 1 deletion spec/01-unit/12-plugins_order_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ describe("Plugins", function()

local order = {
"pre-function",
"correlation-id",
"zipkin",
"bot-detection",
"cors",
Expand Down Expand Up @@ -94,7 +95,6 @@ describe("Plugins", function()
"syslog",
"grpc-web",
"request-termination",
"correlation-id",
"post-function",
}

Expand Down

1 comment on commit 9ae3638

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:9ae36382db4b9485f8889b8cd80d66a0885c86e7
Artifacts available https://github.com/Kong/kong/actions/runs/11350529194

Please sign in to comment.