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

Add additional timestamps to transaction history logs #1335

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

hectorgomezv
Copy link
Member

Summary

Changes

  • Adds an additional field (requestStartTime) to the transactions history cache_write log.
  • Renames timestamp to cacheWriteTime to clarify the field's purpose.

@hectorgomezv hectorgomezv self-assigned this Mar 20, 2024
@hectorgomezv hectorgomezv requested a review from a team as a code owner March 20, 2024 09:01
@coveralls
Copy link

coveralls commented Mar 20, 2024

Pull Request Test Coverage Report for Build 8356393009

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 93.383%

Totals Coverage Status
Change from base Build 8347022186: 0.1%
Covered Lines: 6481
Relevant Lines: 6695

💛 - Coveralls

cacheDir: CacheDir,
data: Page<Transaction>,
): void {
this.loggingService.info({
type: 'cache_write',
cacheKey: cacheDir.key,
cacheField: cacheDir.field,
timestamp: Date.now(),
cacheWriteTime: new Date(Date.now()),
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick:

cacheWriteTime: Date(),

Copy link
Member Author

@hectorgomezv hectorgomezv Mar 20, 2024

Choose a reason for hiding this comment

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

Oops, so true. Thanks!

Changed in 2b6805e

@hectorgomezv hectorgomezv merged commit 08498e9 into main Mar 20, 2024
16 checks passed
@hectorgomezv hectorgomezv deleted the add-request-timestamps-to-history-debug-logs branch March 20, 2024 09:23
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.

4 participants