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

TapBreadcrumbDataSource created #663

Merged
merged 5 commits into from
Apr 5, 2024
Merged

Conversation

nelsitoPuglisi
Copy link
Contributor

@nelsitoPuglisi nelsitoPuglisi commented Apr 5, 2024

Goal

Create a TapBreadcrumbDataSource to log taps as span events.

Testing

Unit test

Copy link
Contributor Author

nelsitoPuglisi commented Apr 5, 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 marked this pull request as ready for review April 5, 2024 14:23
@nelsitoPuglisi nelsitoPuglisi requested a review from a team as a code owner April 5, 2024 14:23
override val attrs = mapOf(
"view.name" to viewName,
"tap.type" to type,
"tap.coords" to coords
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not for the migration now, but something to think about for the future when we want to make this a semantic convention for all of OTel - do we want to have a "unit" field so tap coordinates can be in % of the viewport, device pixels, device independent pixels, etc?

Copy link
Collaborator

@bidetofevil bidetofevil left a comment

Choose a reason for hiding this comment

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

Looks good. I assume the integration tests be added in a separate PR?

@nelsitoPuglisi
Copy link
Contributor Author

Looks good. I assume the integration tests be added in a separate PR?

Yes, there are part of the next PR, when it's hooked up in the breadcrumb service.

Copy link

codecov bot commented Apr 5, 2024

Codecov Report

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

Project coverage is 80.22%. Comparing base (12db875) to head (a45dde4).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #663   +/-   ##
=======================================
  Coverage   80.21%   80.22%           
=======================================
  Files         418      419    +1     
  Lines       10960    10998   +38     
  Branches     1661     1665    +4     
=======================================
+ Hits         8792     8823   +31     
- Misses       1491     1494    +3     
- Partials      677      681    +4     
Files Coverage Δ
.../embrace/android/embracesdk/arch/schema/EmbType.kt 85.71% <100.00%> (+1.09%) ⬆️
...racesdk/capture/crumbs/EmbraceBreadcrumbService.kt 96.42% <100.00%> (ø)
...dk/capture/crumbs/LegacyTapBreadcrumbDataSource.kt 54.54% <100.00%> (ø)
...mbrace/android/embracesdk/payload/TapBreadcrumb.kt 87.50% <100.00%> (+2.88%) ⬆️
...brace/android/embracesdk/arch/schema/SchemaType.kt 95.23% <90.00%> (-1.64%) ⬇️
...android/embracesdk/capture/crumbs/TapDataSource.kt 70.83% <70.83%> (ø)

... and 3 files with indirect coverage changes

@nelsitoPuglisi nelsitoPuglisi merged commit 6e1a17a into master Apr 5, 2024
6 checks passed
@nelsitoPuglisi nelsitoPuglisi deleted the nelson/tap-data-source branch April 5, 2024 20:48
priettt pushed a commit that referenced this pull request Apr 5, 2024
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