Skip to content

[DISSCUS]: support ctx.var to get service_name and route_name #2982

@Firstsawyou

Description

@Firstsawyou

Issue description

When using the http-logger plugin, I need to obtain the name value corresponding to the service (for example: "service_name:$service_name"). But it is currently not available.
Is it necessary for us to support ctx.var to get the value of service_name?
By the way, sometimes route_name is also obtained, but it is not currently supported.

Environment

  • apisix version (cmd: apisix version): 2.0
  • OS:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions