-
Notifications
You must be signed in to change notification settings - Fork 7
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
DataSourceModule providers #712
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @nelsitoPuglisi and the rest of your teammates on |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #712 +/- ##
==========================================
- Coverage 80.40% 80.31% -0.10%
==========================================
Files 426 426
Lines 11274 11270 -4
Branches 1703 1708 +5
==========================================
- Hits 9065 9051 -14
- Misses 1487 1492 +5
- Partials 722 727 +5
|
@@ -108,7 +110,8 @@ internal class IntegrationTestRule( | |||
workerThreadModuleSupplier = { _ -> workerThreadModule }, | |||
storageModuleSupplier = { _, _, _ -> storageModule }, | |||
essentialServiceModuleSupplier = { _, _, _, _, _, _, _, _, _ -> essentialServiceModule }, | |||
dataCaptureServiceModuleSupplier = { _, _, _, _, _, _, _ -> dataCaptureServiceModule }, | |||
dataSourceModuleSupplier = { _, _, _, _, _, _ -> dataSourceModule }, |
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.
I tweaked how this works in #716 but I'll rebase off this to make sure your tests still pass
sessionSpanWriter: SessionSpanWriter, | ||
spanService: SpanService, | ||
private val logger: InternalEmbraceLogger | ||
private val dataSourceModuleProvider: Provider<DataSourceModule?>, |
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.
As discussed, because you reordered the module init, you shouldn't need a provider here. But lets merge it and we can fix it later.
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.
LGTM
32c8d54
to
621086a
Compare
Goal
Using DataSourceModule to provide data sources to services.
Testing
Unit and Integration