-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have the ability to send log messages to a topic in Python #1353
Conversation
str(topic_name), | ||
block_if_queue_full=True, | ||
batching_enabled=True, | ||
batching_max_publish_delay_ms=1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use bigger timeout 10ms
or even 100ms
, since this is not latency sensitive, to improve efficiency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also we should enable LZ4 compression by default. It's very light on cpu and provides good compression for basic text
block_if_queue_full=True, | ||
batching_enabled=True, | ||
batching_max_publish_delay_ms=1, | ||
max_pending_messages=100000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
100K messages could mean a lot of memory to buffer up, I'd stick with default 1K unless there are specific needs
@merlimat addressed review comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Motivation
We want to allow users to specify a log topic where all function logging should end up in.
This change is the first among a series of upcoming change to make that happen. Specifically this change adds the log handler in python
Modifications
Describe the modifications you've done.
Result
After your change, what will change.