temporalio / temporalio/temporal

Throttled logger should not throttle errors that happens rarely

Open
#2,491 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement up-for-grabs
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

Throttled logger will rate limit all log lines equally.
We can do much better job to throttle only frequently repeat log lines.
Current throttled logger likely will miss important error log lines if they happen rarely while hit by rps limit.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with common/log/throttle_logger.go at the linked throttled logger implementation and inspect its callers and existing tests. Clarify the intended treatment of rarely repeated error lines, then add coverage showing that important infrequent errors are not suppressed while repeated lines remain throttled.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.