Kong / go-pdk

Write Kong plugins in Go! 🦍
https://pkg.go.dev/github.com/Kong/go-pdk
Apache License 2.0
146 stars 50 forks source link

Support for `kong.log.set_serialize_value` #123

Open renato-zannon opened 2 years ago

renato-zannon commented 2 years ago

Currently the plugin does not expose the kong.log.set_serialize_value function of the PDK, even though (as far as I can tell) it is the only way for a plugin to enrich the logs produced by file-log.

The go-pdk used to expose the function, but it was removed during the migration to protobuf.

gszr commented 6 months ago

Hey @lgtti, thank you for opening this issue! At the time the Go PDK was introduced, the kong.log.set_serialize_value PDK module did not exist; we recognize this as a desirable improvement, and welcome PRs - feel free to ask questions if you'd like to tackle it! Thanks once again - and happy Konging 🦍!