Skip to content

Commit f2ba9d3

Browse files
committed
Add test logging
1 parent 9be5373 commit f2ba9d3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Samples/SentrySampleShared/SentrySampleShared/UIViewControllerExtension.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public extension UIViewController {
1313
}
1414
}
1515
if result == nil {
16+
print("Could not create transaction observer")
1617
UIAssert.fail("Transaction was not created")
1718
}
1819
return result

Sources/Sentry/SentryPerformanceTracker.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ - (SentrySpanId *)startSpanWithName:(NSString *)name
7171
else {
7272
if ([SentryUIEventTracker isUIEventOperation:span.operation]) {
7373
SENTRY_LOG_DEBUG(
74-
@"Cancelling previous UI event span %@", span.spanId.sentrySpanIdString);
74+
@"[NEW SPAN %@] Cancelling previous UI event span %@ (%@)", name, span.spanDescription, span.spanId.sentrySpanIdString);
7575
[span finishWithStatus:kSentrySpanStatusCancelled];
7676
bindToScope = YES;
7777
}
7878
}
7979
#endif // SENTRY_HAS_UIKIT
8080

8181
SENTRY_LOG_DEBUG(
82-
@"Starting new transaction for %@ with bindToScope: %d", name, bindToScope);
82+
@"[NEW SPAN %@] Starting new transaction for %@ with bindToScope: %d previousSpan: %@ (%@)", name, name, bindToScope, span.operation, span.spanId.sentrySpanIdString);
8383

8484
newSpan = [SentrySDK.currentHub
8585
startTransactionWithContext:context

Sources/Sentry/SentryScope.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ - (void)addBreadcrumb:(SentryBreadcrumb *)crumb
145145

146146
- (void)setSpan:(nullable id<SentrySpan>)span
147147
{
148+
SENTRY_LOG_DEBUG(@"Setting span to %@", span);
148149
@synchronized(_spanLock) {
149150
_span = span;
150151

0 commit comments

Comments
 (0)