algorand / conduit

Algorand's data pipeline framework.
MIT License
37 stars 26 forks source link

more granular timestamps in logs #129

Closed tzaffi closed 1 year ago

tzaffi commented 1 year ago

Summary

Change Conduit's formatter for a higher level of granularity to:

time.RFC3339Nano = "2006-01-02T15:04:05.999999999Z07:00"

Caveat

The RFC3339Nano format removes trailing zeros from the seconds field and thus may not sort correctly once formatted.

Taken from: https://pkg.go.dev/time

Test Plan

CI

codecov[bot] commented 1 year ago

Codecov Report

Merging #129 (4b32a7e) into master (442791a) will increase coverage by 2.81%. Report is 47 commits behind head on master. The diff coverage is 77.64%.

@@            Coverage Diff             @@
##           master     #129      +/-   ##
==========================================
+ Coverage   67.66%   70.47%   +2.81%     
==========================================
  Files          32       36       +4     
  Lines        1976     2544     +568     
==========================================
+ Hits         1337     1793     +456     
- Misses        570      654      +84     
- Partials       69       97      +28     
Files Changed Coverage Δ
conduit/data/block_export_data.go 100.00% <ø> (+92.30%) :arrow_up:
conduit/metrics/metrics.go 100.00% <ø> (ø)
conduit/pipeline/metadata.go 69.11% <ø> (ø)
conduit/plugins/config.go 100.00% <ø> (ø)
...duit/plugins/exporters/filewriter/file_exporter.go 81.63% <ø> (-1.06%) :arrow_down:
conduit/plugins/importers/algod/metrics.go 100.00% <ø> (ø)
...gins/processors/filterprocessor/fields/searcher.go 77.50% <ø> (ø)
...ins/processors/filterprocessor/filter_processor.go 83.82% <ø> (+3.54%) :arrow_up:
...plugins/processors/filterprocessor/gen/generate.go 34.28% <ø> (ø)
conduit/plugins/processors/noop/noop_processor.go 64.70% <ø> (+6.81%) :arrow_up:
... and 19 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more