Skip to content

Commit

Permalink
switch to using nibName instead of setting it for every view
Browse files Browse the repository at this point in the history
  • Loading branch information
MustafaHaddara committed Dec 3, 2024
1 parent 41dd09f commit d16b101
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/Honeycomb/UIKit/UIViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
}
if let nibName = self.nibName {
span.setAttribute(key: "view.nibName", value: nibName)
HoneycombNavigationProcessor.shared.setCurrentNavigationPath(nibName)
}
span.setAttribute(key: "view.animated", value: animated)
span.setAttribute(key: "view.class", value: className)
Expand All @@ -23,8 +24,6 @@
let span = getUIKitViewTracer().spanBuilder(spanName: "viewDidAppear").startSpan()
setAttributes(span: span, className: className, animated: animated)
span.end()

HoneycombNavigationProcessor.shared.setCurrentNavigationPath(className)
}

traceViewDidAppear(animated)
Expand Down

0 comments on commit d16b101

Please sign in to comment.