Skip to content

Commit

Permalink
feature: add opentelemetry plugin. (apache#3891)
Browse files Browse the repository at this point in the history
  • Loading branch information
roketyyang committed Jan 18, 2022
1 parent 84084d3 commit d8aa4d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apisix/plugins/opentelemetry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ end
function _M.log(conf, api_ctx)
local ctx = context:current();
if ctx then
local upstream_status = core.response.get_upstream_status(api_ctx)
-- get span from current context
local span = ctx:span()
if upstream_status and upstream_status >= 500 then
Expand Down

0 comments on commit d8aa4d8

Please sign in to comment.