Skip to content

FR: Expression language support for removing query params from request.path attribute #6380

@douglas-reid

Description

@douglas-reid

Is your feature request related to a problem? Please describe.
There is a desire to support telemetry related to http endpoints. Right now, the API Mgmt support does not exist in Istio to allow mapping to api.operation via OpenAPI. A method for trimming down request.path to just the essentials is needed to fill the void.

Describe the solution you'd like
Add a func like: urlPath(string) to the expression language. It should function as follows:

endpoint: urlPath(request.path) | "unknown"

Given: request.path = "/foo/bar?x=10&mesh=istio", it should produce "/foo/bar".

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions