gloo icon indicating copy to clipboard operation
gloo copied to clipboard

Transformations: support typed integer value extraction

Open guydc opened this issue 3 years ago • 0 comments

Version

1.12.*

Is your feature request related to a problem? Please describe.

Numeric Dynamic Metadata that was created with a Gloo Edge Transformation Extractor appears to be stored as a string. As a result, when access logging in json format, such numeric values are encoded as json strings, and would be treated as strings by logging frameworks.

Describe the solution you'd like

Similar to the Header-to-Metadata Filter, it should be possible to define the type of the stored dynamic metadata value, to ensure it is properly formatted. This can be implemented by extending the gloo edge dynamic metadata value interface and making it possible to configure the value type (default: string), and using the appropriate dynamic metadata apis.

Describe alternatives you've considered

Post processing in logging frameworks to fix typing issue.

Additional Context

No response

guydc avatar Nov 17 '22 20:11 guydc