jagerzhang commented on pull request #6181: URL: https://github.com/apache/apisix/pull/6181#issuecomment-1019631515
@spacewander https://github.com/apache/apisix/pull/5941/files 求问下,我看到这个特性需要自己写代码注册自定义变量: ``` local core = require "apisix.core" core.ctx.register_var("a6_route_labels", function(ctx) local route = ctx.matched_route and ctx.matched_route.value if route and route.labels then return route.labels end return nil end) ``` 那这个代码是写到哪里呢? 我只是一个普通APISIX用户,并不是开发..确实没看出来应该怎么将这个路由labels记录到kafka-logger里面。 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
