Hi,
While reading Structlog’s performance guide, I wondered how to integrate orjson with ecs_logging.StructlogFormatter. From what I gathered, the standard library’s json module is used in _utils.json_dumps to provide encoding for both formatters. Would you consider a configurable serializer for this project, to gain some performance? I assume the integration would be pretty straightforward, besides some minor changes in json_dumps and a new optional argument for the formatters’ initializers. If you agree, I would be happy to contribute. :)
Hi,
While reading Structlog’s performance guide, I wondered how to integrate orjson with
ecs_logging.StructlogFormatter. From what I gathered, the standard library’s json module is used in_utils.json_dumpsto provide encoding for both formatters. Would you consider a configurable serializer for this project, to gain some performance? I assume the integration would be pretty straightforward, besides some minor changes injson_dumpsand a new optional argument for the formatters’ initializers. If you agree, I would be happy to contribute. :)