-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[fix] Refactor archive storage initialization and remove error log #6636
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6636 +/- ##
==========================================
+ Coverage 95.93% 95.96% +0.02%
==========================================
Files 365 365
Lines 20609 20602 -7
==========================================
- Hits 19771 19770 -1
+ Misses 638 634 -4
+ Partials 200 198 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Mahad Zaryab <[email protected]>
Signed-off-by: Mahad Zaryab <[email protected]>
} | ||
|
||
func (f *Factory) createArchiveSpanWriter() (spanstore.Writer, error) { | ||
factory, ok := f.archiveFactories[f.SpanWriterTypes[0]] | ||
func (f *Factory) InitArchiveStorage() (*ArchiveStorage, error) { |
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.
Why not just return 3 values?
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.
@yurishkuro I think its generally a pattern that is avoided in Go. I'm happy to change it if you like that better.
Signed-off-by: Mahad Zaryab <[email protected]>
Which problem is this PR solving?
Description of the changes
How was this change tested?
Checklist
jaeger
:make lint test
jaeger-ui
:npm run lint
andnpm run test