Fixes for 8.0.0 #1094
Replies: 14 comments 16 replies
-
Rename |
Beta Was this translation helpful? Give feedback.
-
Mark some properties in SentryEvent.h sentry-cocoa/Sources/Sentry/Public/SentryEvent.h Lines 62 to 63 in ce1b8d1 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
We should not expose SentryOptions.diagnosticLevel for public consumption/modification. Logging should be either info/error as the default, or debug of the SDK debug mode is enabled. |
Beta Was this translation helpful? Give feedback.
-
We code
However we have other types listed at https://develop.sentry.dev/sdk/event-payloads/breadcrumbs/#breadcrumb-types Instead of leaving this seemingly open-ended (what happens if consumers provide a value that's not in the list? The above doc doesn't say, nor does https://docs.sentry.io/platforms/apple/enriching-events/breadcrumbs/) with a comment on what is valid (can't be automatically checked and drifts from implementation), we should provide an enum of valid values. We should probably also validate that the data being provided to a breadcrumb matches the type of breadcrumb it is, logging a warning for any unexpected field keys. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Refactor our usages of We do have For my current changes I'm just adding a system timestamp alongside the NSDates where needed, but we could refactor this in the future into something like this: @interface SentryDate : NSObject
/** The @c NSDate reported when this instance was initialized. */
@property (strong, nonatomic) NSDate *nsdate;
/** The system clock time reported when this instance was initialized. */
@property (assign, nonatomic) uint64_t systemTime;
@end We could also provide methods to calculate durations and compare two dates, and we can check if the calculation differs too greatly between using the NSDate and system time. I started down this road but wound up having to modify |
Beta Was this translation helpful? Give feedback.
-
Remove deprecated arrays of enum name constants in favor of functions to map enum values to names (see this PR). |
Beta Was this translation helpful? Give feedback.
-
Mark close as deprecated, use close(timeout:) instead, which calls flush. This change aligns with the unified API https://develop.sentry.dev/sdk/unified-api/#client. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
-
Closing this as major version 8 has been released. See the new discussion for ideas for next major version 9: #2946 |
Beta Was this translation helpful? Give feedback.
-
Ideas for fixes in 8.0.0.
Beta Was this translation helpful? Give feedback.
All reactions