python-logstash-async icon indicating copy to clipboard operation
python-logstash-async copied to clipboard

FastAPI Formatter Support

Open HimekoEx opened this issue 1 year ago • 1 comments

Hi,

Is there any plan to add a Formatter that supports FastAPI? It would be great for those using FastAPI with ELK stack to have built-in support, especially for structured logging and trace context.

Thanks!

HimekoEx avatar Aug 16 '24 03:08 HimekoEx

Hi, I don not have plans to do this myself. I'm not using FastAPI and are not familiar with it. But if anyone wants to contribute a FastAPI formatter, that would be nice and appreciated.

Maybe the Flask formatter can be used as a starting point to clone it and adjust for FastAPI (https://github.com/eht16/python-logstash-async/blob/master/logstash_async/formatter.py#L428).

eht16 avatar Aug 18 '24 20:08 eht16