From b51d2197bd0d07eb4b5712bec83375c9fab2d9fc Mon Sep 17 00:00:00 2001 From: Philip Niedertscheider Date: Mon, 20 Jan 2025 14:00:27 +0100 Subject: [PATCH] WIP --- Sources/SentrySwiftUI/SentryInternal/SentryTraceOrigin.swift | 4 ++-- Sources/SentrySwiftUI/SentryTracedView.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/SentrySwiftUI/SentryInternal/SentryTraceOrigin.swift b/Sources/SentrySwiftUI/SentryInternal/SentryTraceOrigin.swift index a6f916790c..b7dba94456 100644 --- a/Sources/SentrySwiftUI/SentryInternal/SentryTraceOrigin.swift +++ b/Sources/SentrySwiftUI/SentryInternal/SentryTraceOrigin.swift @@ -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" } diff --git a/Sources/SentrySwiftUI/SentryTracedView.swift b/Sources/SentrySwiftUI/SentryTracedView.swift index 81ac92649a..3de5cdea3c 100644 --- a/Sources/SentrySwiftUI/SentryTracedView.swift +++ b/Sources/SentrySwiftUI/SentryTracedView.swift @@ -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 @@ -57,7 +57,7 @@ class SentryTraceViewModel { withName: name, nameSource: nameSource, operation: "ui.load", - origin: traceOrigin.rawValue + origin: traceOrigin ) SentryPerformanceTracker.shared.pushActiveSpan(spanId) return spanId