Skip to content
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

Improve ES logging #1228

Merged
merged 5 commits into from
Jan 26, 2021
Merged

Conversation

alexshtin
Copy link
Member

@alexshtin alexshtin commented Jan 26, 2021

What changed?

  • Added logLevel to ES config with possible values: error (default), info, trace, and disabled.
  • Improved duplicate request logging.

Why?
Improve ES logging for better debug expirience.

How did you test it?
Run locally and observed trace level logs.

Potential risks
No risks.

@alexshtin alexshtin marked this pull request as draft January 26, 2021 19:33
}

p.logger.Info("Adding duplicate visibility task to ES bulk processor.", tag.Value(key))
p.logger.Warn("Adding duplicate ES request for visibility task key.", tag.Key(visibilityTaskKey), tag.ESDocID(request.ID), tag.Value(request.Doc))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For easy grep "ES request".

@alexshtin alexshtin marked this pull request as ready for review January 26, 2021 21:38
@alexshtin alexshtin changed the title Remove info ES logging Improve ES logging Jan 26, 2021
@alexshtin alexshtin merged commit 089f746 into temporalio:master Jan 26, 2021
@alexshtin alexshtin deleted the feature/es-logging-remove branch January 26, 2021 22:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants