Skip to content

Commit

Permalink
Update Sources/Sentry/SentryNetworkTracker.m
Browse files Browse the repository at this point in the history
Co-authored-by: Dhiogo Brustolin <[email protected]>
  • Loading branch information
krystofwoldrich and brustolin authored Jun 24, 2024
1 parent 79e1165 commit c3c940d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Sentry/SentryNetworkTracker.m
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,10 @@ - (void)urlSessionTaskResume:(NSURLSessionTask *)sessionTask
}

// Register request start date in the sessionTask to use for breadcrumb
if (self.isNetworkBreadcrumbEnabled) {
objc_setAssociatedObject(sessionTask, &SENTRY_NETWORK_REQUEST_START_DATE, [NSDate date],
OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

@synchronized(self) {
if (!self.isNetworkTrackingEnabled) {
Expand Down

0 comments on commit c3c940d

Please sign in to comment.