Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

refactoring breadcrumbs callback #239

Merged
merged 1 commit into from
Jan 18, 2020
Merged

Conversation

marandaneto
Copy link
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

refactoring breadcrumbs callback.

💡 Motivation and Context

callbacks were called on Hub and Scope, but could it be placed and logged together.

💚 How did you test it?

executing it, there is unit tests already.

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • All tests passing

🔮 Next steps

@@ -70,7 +70,7 @@ android {
dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))

implementation("io.sentry:sentry-android:2.0.0-beta02")
implementation("io.sentry:sentry-android:2.0.0-rc01")
Copy link
Member

Choose a reason for hiding this comment

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

Is this supposed to go in this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it could be separated, but it doesn't affect anything, my bad

scope.setUser(user);
scope.setTag("tag", "tag");
});
Sentry.addBreadcrumb("Breadcrumb");
Copy link
Member

Choose a reason for hiding this comment

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

We could demo here the beforeBreadcrumb dropping a crumb too. Would be nice.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it should be done on MyApplication though.

@codecov-io
Copy link

codecov-io commented Jan 18, 2020

Codecov Report

Merging #239 into master will decrease coverage by 0.36%.
The diff coverage is 86.2%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #239      +/-   ##
============================================
- Coverage     58.13%   57.76%   -0.37%     
+ Complexity      574      569       -5     
============================================
  Files            72       72              
  Lines          2706     2692      -14     
  Branches        237      235       -2     
============================================
- Hits           1573     1555      -18     
- Misses         1014     1016       +2     
- Partials        119      121       +2
Impacted Files Coverage Δ Complexity Δ
sentry-core/src/main/java/io/sentry/core/Hub.java 68.63% <66.66%> (-1.61%) 52 <0> (-3)
...entry-core/src/main/java/io/sentry/core/Scope.java 74.5% <88.46%> (-1.01%) 29 <5> (-1)
...rc/main/java/io/sentry/core/CircularFifoQueue.java 34.95% <0%> (-2.44%) 17% <0%> (-1%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 018e7f9...d767dc0. Read the comment docs.

@marandaneto marandaneto merged commit f1a6cf1 into master Jan 18, 2020
@marandaneto marandaneto deleted the ref/breadcrumbs_callback branch January 18, 2020 16:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants