-
-
Couldn't load subscription status.
- Fork 369
Add sentry.replay_id attribute to logs
#6515
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
base: main
Are you sure you want to change the base?
Conversation
|
sentry.replay_id to logssentry.replay_id attribute to logs
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6515 +/- ##
=============================================
+ Coverage 85.513% 85.515% +0.002%
=============================================
Files 451 451
Lines 27328 27346 +18
Branches 11913 11922 +9
=============================================
+ Hits 23369 23385 +16
- Misses 3914 3915 +1
- Partials 45 46 +1
... and 6 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Bug: Replay Headers Cause Compilation IssuesThe |
|
Having some trouble with accessing |
@noahsmartin is good candidate to answer this ⬆️ |
|
I was unsuccessful in exposing |
| } | ||
|
|
||
| private func addReplayAttributes(to attributes: inout [String: SentryLog.Attribute]) { | ||
| #if os(iOS) || os(tvOS) |
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 think this should be
| #if os(iOS) || os(tvOS) | |
| #if (os(iOS) || os(tvOS)) && !SENTRY_NO_UIKIT |
|
|
||
| // MARK: - Replay Attributes Tests | ||
|
|
||
| #if os(iOS) || os(tvOS) |
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.
Probably the same here
| #if os(iOS) || os(tvOS) | |
| #if (os(iOS) || os(tvOS)) && !SENTRY_NO_UIKIT |
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, once the build issue is fixed
📜 Description
sentry.replay_idto logs if replay id is set on scopesentry.replay_idandsentry._internal.replay_is_bufferingif replay id is set on integration (buffer mode)💡 Motivation and Context
I tried this with our sample app, but always got no session, and therefore not replayId, from the integration. Was expecting that we have a buffered session, but i'm probably not familiar with how this is implemented on iOS. I assumed the flow is similar to what we have on Android.NVM, this was on iOS 26 where it's disable. Works as expected on iOS < 26.Closes #6133
💚 How did you test it?
Unit tests. Sample app.
📝 Checklist
You have to check all boxes before merging:
sendDefaultPIIis enabled.