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

feat: Breadcrumbs for sessions #1263

Merged
merged 6 commits into from
Oct 30, 2021
Merged

feat: Breadcrumbs for sessions #1263

merged 6 commits into from
Oct 30, 2021

Conversation

bitsandfoxes
Copy link
Contributor

With debug logging disabled sessions leave no trace. I took Type and Category from the Java SDK: https://github.com/getsentry/sentry-java/blob/main/sentry-android-core/src/main/java/io/sentry/android/core/LifecycleWatcher.java#L130-L137

@bitsandfoxes bitsandfoxes added the Feature New feature or request label Oct 13, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2021

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against d97e213

@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2021

Codecov Report

Merging #1263 (d97e213) into main (0e2cad9) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1263      +/-   ##
==========================================
+ Coverage   81.82%   81.83%   +0.01%     
==========================================
  Files         212      212              
  Lines        7070     7075       +5     
  Branches     1396     1396              
==========================================
+ Hits         5785     5790       +5     
  Misses        845      845              
  Partials      440      440              
Impacted Files Coverage Δ
src/Sentry/GlobalSessionManager.cs 77.47% <100.00%> (+0.51%) ⬆️

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 0e2cad9...d97e213. Read the comment docs.

CHANGELOG.md Outdated Show resolved Hide resolved
@@ -398,6 +402,8 @@ public IReadOnlyList<SessionUpdate> ResumeSession()
return Array.Empty<SessionUpdate>();
}

AddSessionBreadcrumb("Resuming Session");
Copy link
Member

Choose a reason for hiding this comment

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

What about being specific that this is a Sentry session?

Suggested change
AddSessionBreadcrumb("Resuming Session");
AddSessionBreadcrumb("Sentry resuming session");

@bruno-garcia
Copy link
Member

Lucas offered to tidy up the missing notes and merge this one. Thank

@bruno-garcia bruno-garcia enabled auto-merge (squash) October 30, 2021 22:53
@bruno-garcia bruno-garcia merged commit a65e1ac into main Oct 30, 2021
@bruno-garcia bruno-garcia deleted the feat/session-breadcrumbs branch October 30, 2021 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants