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

WebViewUrlDataSource created #674

Merged
merged 5 commits into from
Apr 9, 2024
Merged

Conversation

nelsitoPuglisi
Copy link
Contributor

@nelsitoPuglisi nelsitoPuglisi commented Apr 8, 2024

Goal

Create a DataSource that store WebView urls as SessionSpan events

Testing

Unit tests

Copy link
Contributor Author

nelsitoPuglisi commented Apr 8, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @nelsitoPuglisi and the rest of your teammates on Graphite Graphite

@nelsitoPuglisi nelsitoPuglisi changed the title WebViewUrlDataSource WebViewUrlDataSource created Apr 8, 2024
@nelsitoPuglisi nelsitoPuglisi marked this pull request as ready for review April 8, 2024 15:09
@nelsitoPuglisi nelsitoPuglisi requested a review from a team as a code owner April 8, 2024 15:09
Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

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

LGTM. To consider the feature complete I think it's necessary to create an integration test (see BreadcrumbFeatureTest for an example) and also to update DataSourceModule so this class gets instantiated. I'm assuming that will go ahead in a separate PR

try {
alterSessionSpan(
inputValidation = {
breadcrumbBehavior.isWebViewBreadcrumbCaptureEnabled() && url != null
Copy link
Contributor

Choose a reason for hiding this comment

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

The call to isWebViewBreadcrumbCaptureEnabled can be avoided here - we can follow the pattern for supplying a configGate parameter that other data sources use in DataSourceModule.

@nelsitoPuglisi
Copy link
Contributor Author

LGTM. To consider the feature complete I think it's necessary to create an integration test (see BreadcrumbFeatureTest for an example) and also to update DataSourceModule so this class gets instantiated. I'm assuming that will go ahead in a separate PR

Yes, those test will be part of the PR that puts this into production.

Copy link

codecov bot commented Apr 9, 2024

Codecov Report

Attention: Patch coverage is 81.08108% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 80.16%. Comparing base (5e7a0f0) to head (8479065).
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #674      +/-   ##
==========================================
+ Coverage   80.09%   80.16%   +0.06%     
==========================================
  Files         421      422       +1     
  Lines       11002    11034      +32     
  Branches     1666     1672       +6     
==========================================
+ Hits         8812     8845      +33     
+ Misses       1508     1505       -3     
- Partials      682      684       +2     
Files Coverage Δ
.../embrace/android/embracesdk/arch/schema/EmbType.kt 86.66% <100.00%> (+0.95%) ⬆️
...brace/android/embracesdk/arch/schema/SchemaType.kt 97.72% <100.00%> (+0.42%) ⬆️
...racesdk/capture/crumbs/EmbraceBreadcrumbService.kt 96.42% <100.00%> (ø)
...apture/crumbs/LegacyWebViewBreadcrumbDataSource.kt 46.66% <100.00%> (ø)
.../embracesdk/capture/crumbs/WebViewUrlDataSource.kt 70.83% <70.83%> (ø)

... and 4 files with indirect coverage changes

@nelsitoPuglisi nelsitoPuglisi merged commit fcd5f5c into master Apr 9, 2024
4 checks passed
@nelsitoPuglisi nelsitoPuglisi deleted the nelson/web-view-data-source branch April 9, 2024 13:55
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.

None yet

2 participants