Skip to content

Commit

Permalink
Update ContentView.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
brustolin committed Oct 3, 2024
1 parent 5a9010e commit 0b11da7
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Samples/iOS-SwiftUI/iOS-SwiftUI/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,16 @@ struct ContentView: View {
return SentryTracedView("Content View Body") {
NavigationView {
VStack(alignment: HorizontalAlignment.center, spacing: 16) {
Text(getCurrentTracer()?.transactionContext.name ?? "NO SPAN")
.accessibilityIdentifier("TRANSACTION_NAME")
Text(getCurrentTracer()?.transactionContext.spanId.sentrySpanIdString ?? "NO ID")
.accessibilityIdentifier("TRANSACTION_ID")

Text(getCurrentTracer()?.transactionContext.origin ?? "NO ORIGIN")
.accessibilityIdentifier("TRACE_ORIGIN")

Group {
Text(getCurrentTracer()?.transactionContext.name ?? "NO SPAN")
.accessibilityIdentifier("TRANSACTION_NAME")
Text(getCurrentTracer()?.transactionContext.spanId.sentrySpanIdString ?? "NO ID")
.accessibilityIdentifier("TRANSACTION_ID")
.sentryReplayMask()

Text(getCurrentTracer()?.transactionContext.origin ?? "NO ORIGIN")
.accessibilityIdentifier("TRACE_ORIGIN")
}.sentryReplayUnmask()
SentryTracedView("Child Span") {
VStack {
Text(getCurrentSpan()?.spanDescription ?? "NO SPAN")
Expand Down Expand Up @@ -189,7 +191,7 @@ struct ContentView: View {

NavigationLink(destination: LoremIpsumView()) {
Text("Lorem Ipsum")
}.sentryReplayMask()
}

NavigationLink(destination: UIKitScreen()) {
Text("UIKit Screen")
Expand All @@ -200,7 +202,6 @@ struct ContentView: View {
}
}
.background(Color.white)
.sentryReplayUnmask()
}
SecondView()
}
Expand Down

0 comments on commit 0b11da7

Please sign in to comment.