Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
philprime committed Jan 20, 2025
1 parent 3d45aa8 commit b51d219
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/SentrySwiftUI/SentryInternal/SentryTraceOrigin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
// - Auto-generated `Sentry-Swift.h` is manually imported to `SentrySwift.h`
// - Issue: Internal class is public for SDK users, which is not desired

enum SentryTraceOrigin: String {
case autoUITimeToDisplay = "auto.ui.time_to_display"
enum SentryTraceOrigin {
static let autoUITimeToDisplay = "auto.ui.time_to_display"
}
4 changes: 2 additions & 2 deletions Sources/SentrySwiftUI/SentryTracedView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SentryTraceViewModel {
withName: name,
nameSource: nameSource,
operation: "ui.load",
origin: traceOrigin.rawValue
origin: traceOrigin
)
SentryPerformanceTracker.shared.pushActiveSpan(transactionId)
self.transactionId = transactionId
Expand All @@ -57,7 +57,7 @@ class SentryTraceViewModel {
withName: name,
nameSource: nameSource,
operation: "ui.load",
origin: traceOrigin.rawValue
origin: traceOrigin
)
SentryPerformanceTracker.shared.pushActiveSpan(spanId)
return spanId
Expand Down

0 comments on commit b51d219

Please sign in to comment.